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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!