Functions that take and give
A momo shop takes ingredients in (filling, number of plates) and hands a dish out. Functions can do the same: take values in through parameters and hand a result back with return.
Parameters: values in
function greet(name) {
console.log("Namaste, " + name + "!");
}
greet("Sita");
greet("Ram");function orderMomo(plates, filling) {
console.log(`${plates} plates of ${filling} momo`);
}
orderMomo(2, "buff");