Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started