MCQs>IT & Programming>JavaScript>What's the output? function sayHi(person) { 'use strict'; message = 'Hi, ' + person; console.log(message); } person = 'Jim'; sayHi(person);
JavaScript MCQs
What will be printed to console? function sayHi(person) { "use strict"; message = "Hi, " + person; console.log(message); } person = "Jim"; sayHi(person);
Answer
Correct Answer: ReferenceError: message is not defined
Explanation:
Note: This Question is unanswered, help us to find answer for this one