PrepAway - Latest Free Exam Questions & Answers

What is the output when you run this script in the browser?

Consider the following code:
var myString= “Hello World”;
alert(myString.length);
What is the output when you run this script in the browser?

PrepAway - Latest Free Exam Questions & Answers

A.
An alert box displaying the following: “Hello World”, 11

B.
An alert box displaying the following: myString, 11

C.
An alert box displaying the following: Hello World

D.
An alert box displaying the following: 11

Explanation:


Leave a Reply