A
Q. Consider the JavaScript code:
Identify the value that will be displayed in alert box at line 5?
Code:
function lfc(myname){
console.log(10+"lfc" +12);
}
res=lfc(10);
console.log(res); //line 5
console.log(10+"lfc" +12);
}
res=lfc(10);
console.log(res); //line 5
- Correct Answer - Option(D)
- Views: 17
- Filed under category JavaScript
- Hashtags:
Discusssion
Login to discuss.