CIW
1D0-635 · Question #5
Consider the following code: var myString= "Hello World"; alert(myString.length); What is the output when you run this script in the browser?
The correct answer is D. An alert box displaying the following: 11. See the full explanation below for the reasoning.
Question
Consider the following code:
var myString= "Hello World"; alert(myString.length); What is the output when you run this script in the browser?
Options
- AAn alert box displaying the following: "Hello World", 11
- BAn alert box displaying the following: myString, 11
- CAn alert box displaying the following: Hello World
- DAn alert box displaying the following: 11
How the community answered
(22 responses)- A5% (1)
- B14% (3)
- C5% (1)
- D77% (17)
Community Discussion
No community discussion yet for this question.