JavaScript Tutorial in Hindi for Beginners [Part 18] - How to create a Function in JavaScript

Tech Gun
Youtube
Related Topic
:- Javascript Web Development

 In this video i will talk about Functions in JavaScript A JavaScript function is a block of code designed to perform a particular task. A JavaScript function is executed when "something" invokes it (calls it). JavaScript Function Syntax A JavaScript function is defined with the function keyword, followed by a name, followed by parentheses (). Function names can contain letters, digits, underscores, and dollar signs (same rules as variables). The parentheses may include parameter names separated by commas: (parameter1, parameter2, ...) The code to be executed, by the function, is placed inside curly brackets: {}.

Comments