Functions
Functions: - Set of statements called a function. - Functions meant for writing common business logic. - Functions are used to reuse business logic. - We have two types of functions: 1. Named Functions 2. Anonymous Functions Named Functions: - The Functions with the name called as Named Functions . - In general, we will create functions with the " function " keyword. Syntax. //Function Defination function function_name( [parameters] ){ //Business Logic } //Call the function. function_name() Ex_1: Create the function @fun_one @fun_one should display the message on the web page. Call the @fun_one SCRIPT CODE: <sc...