Question: For the next two questions, consider the following JavaScript code segment var wordprompt (Enter a word) if( word.length > 10) console.log (Wow, big word.) elsef

For the next two questions, consider the following JavaScript code segment var wordprompt ("Enter a word") if( word.length > 10) console.log ("Wow, big word.") elsef ?E( word.length 6) ( console.log ("Use that word on the SAT.") elsef console.log("I've never heard that before.") 16. If the above code segment is run, and "hello" is entered at the prompt, what will be displayed in the console? a. Wow, big word. b. Did you say something? That was so short. c. Use that word on the SAT. d. I've never heard that before. e. Nothing will be printed 17. If the above code segment is run, and "goodbye" is entered into the prompt, what will be displayed in the console? a. Wow, big word. b. Did you say something? That was so short. c. Use that word on the SAT d. I've never heard that before. e. Nothing will be printed
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
