growthmindsit

Programming with JavaScript

JavaScript make your web page more interactive by :

declaring function

to creating function you need to give it name and some statment in curly braces to achive.

calling function

to run the code in curly braces , you use the function name followed by parentheses

declaring function that need information

when you declar function you give parameters . inside the function the parameters will be as variable . when you need to call this function you must spicified the values inside parentheses. this value called argument and it can be provide as value or variable.
you can get a single value out of function by return the result of the function