in JavaScript by
Q:
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 and answers

0 votes
asked Oct 19, 2019 in JavaScript by SakshiSharma
0 votes
asked Oct 19, 2019 in JavaScript by SakshiSharma
0 votes
asked Aug 24, 2020 in JavaScript by Hodge
...