Which one of the following is the possibly correct output for the given JavaScript code?
function fun(length) { const a=5; for(let i=0;i<length;i++) { console.log(a); } } fun(2);
5
5 5
5 5 5
error
Correct Answer : B
In JavaScript, what will be used for calling the function definition expression:
In the following given line of code, the prototype representing the_____
functionx(){};
Can you pass a anonymous function as an argument to another function?