How to – Define JavaScript Functions

There are 3 ways you can define JavaScript Functions: 1- You can use “Function” constructor var total = new Function('a', 'b', 'c', 'return a + b + c;'); alert(total(1,1,1)); -> alerts '3' 2- You can use function declaration (This is

Read More How to – Define JavaScript Functions