Question: What's wrong with the following statement? == Goodbye) { if (word == So long) || (word alert(See you soon!); } else { alert(How are you?);

What's wrong with the following statement? == "Goodbye") { if (word == "So long") || (word alert("See you soon!"); } else { alert("How are you?"); } None of the other choices are correct. There should be a condition after the word else You need quotation marks around each occurrence of word The "or" operator should be inside the parentheses. You should use return instead of alert The curly braces are mismatched
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
