

MCQOPTIONS
Saved Bookmarks
1. |
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"); 4.What will be the output of the below code? |
A. | 4 |
B. | 22 |
C. | Error: changeVal is not a function |
D. | undefined |
Answer» B. 22 | |