0 votes
in JavaScript by
How to create a function in JavaScript?

1 Answer

0 votes
by

To create a function in JavaScript, follow the following syntax.

  1. function function_name(){  
  2. //function body  
  3. }  

Related questions

0 votes
asked Oct 19, 2019 in JavaScript by SakshiSharma
0 votes
asked Oct 19, 2019 in JavaScript by SakshiSharma
...