Question: Predict the output of the following JavaScript code. function display (flag) { O O } O msg display(false); document.write(msg); true return (flag? true :

Predict the output of the following JavaScript code. function display (flag) { O O } O msg display("false"); document.write(msg); true return (flag? true : false); = false Runtime error Structural error
Step by Step Solution
3.45 Rating (164 Votes )
There are 3 Steps involved in it
Answer Option b is correct option Here the value of flag is fa... View full answer
Get step-by-step solutions from verified subject matter experts
