A

Admin • 833K Points
Coach

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
  • Correct Answer - Option(D)
  • Views: 17
  • Filed under category JavaScript
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.