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
  • (A) 10
  • (B) 10lfc12
  • (C) 10lfc
  • (D) undefined
πŸ’¬ Discuss
βœ… Correct Answer: (D) undefined

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
332
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
83%
Success Rate