| Function declation and use of function keyword in Node.js with syntax?
Below is code in node.js and which defined named function using the function keyword and saved the file in .js file with name functiondeclare.js.
Code in functiondeclare.js file
and now to run the file we open the node.js in command prompt and after calling the below syntax we call below syntax.
node functiondeclare.js
and after above command we will get below output:-
| | |