in JavaScript by (31.6k points)
How to create a function in JavaScript?

1 Answer

0 votes
by (31.6k points)

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 (32.2k points)
0 votes
asked Oct 19, 2019 in JavaScript by SakshiSharma (32.2k points)
0 votes
asked Aug 24, 2020 in JavaScript by Hodge (2.6k points)
...