0% found this document useful (0 votes)
3 views1 page

Javascript Exam Notes

A script is a set of instructions in a scripting language that executes without compilation, commonly used for automation and web interactivity. In JavaScript, a function is a reusable block of code for specific tasks. An example of a simple program is provided to determine if a number is even or odd.

Uploaded by

kaveriofficial7
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views1 page

Javascript Exam Notes

A script is a set of instructions in a scripting language that executes without compilation, commonly used for automation and web interactivity. In JavaScript, a function is a reusable block of code for specific tasks. An example of a simple program is provided to determine if a number is even or odd.

Uploaded by

kaveriofficial7
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

1.

Define Script

A script is a set of instructions written in a scripting language executed without compilation.

2. Function in JavaScript

A reusable block of code designed to perform a specific task.

Long Answer: Script

A script is executed line-by-line and used for automation and web interactivity. Examples:
JavaScript, Python.

Program: Even or Odd

let n=5; if(n%2==0) [Link]('Even'); else [Link]('Odd');

You might also like