18.
Which of the following is a built-in property of JavaScript functions?
amount
count
size
length
Correct: D
The length property of a JavaScript function returns the number of parameters it expects to receive.
function myFunction(name, age) {
// ...
}
console.log(myFunction.length); // Output: 2