JavaScript Function
function is like a mini-program within a program, designed to be reusable
this is used so that you don't have to repeat code in a repetitive task
syntax
function greet(name) {
console.log("Hello, " + name + "!");
}
greet("Alice"); // Output: Hello...
wishba.hashnode.dev1 min read