When you need to create a function in JavaScript, the main method is to use the function keyword followed by the function name as shown below: function greetings(name) { console.log(`Hello, ${name}!
komalwebdev.hashnode.dev3 min read
No responses yet.