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');