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?

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

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 0

Your email address will not be published. Required fields are marked *