A function is a block of code that will be executed when “someone” calls it:
JavaScript Function Syntax
A function is written as a code block (inside curly { } braces), preceded by the function keyword:
function functionname() { some code to be executed }
The post JavaScript Functions appeared first on My CMS.