1. What is the difference between parameters and arguments?
Parameters are placeholders defined in a function declaration. Arguments are the real values passed when calling that function. In short, parameters are like empty boxes, and arguments are what you put inside them. If you pass fewer arguments than parameters, the missing ones become undefined. Matching them correctly ensures your function works as expected.
function add(a, b) { return a + b; }
console.log(add(2, 3)); // 2 and 3 are arguments; a and b are parameters