Q. What will be the output of the below code?
Code:function password(pass) {
for (i = 0; i < pass.length; i++) {
}
}
function name(pname) {
console.log("The value of i is "+i);
for (i = 0; i < pname.length; i++) {
}
}
password("54321");
name("John");
β
Correct Answer: (B)
5