Question: 1 .In JavaScript, after executing var x = hello; then if you wanted to have var z have the value of the number of characters
1.In JavaScript, after executing var x = "hello"; then if you wanted to have var z have the value of the number of characters in x, you could use
Select one:
a. var z = 3;
b. var z = x.length;
c. var z = length(x);
d. var z = x.length();
e. var z = x.len;
2.What global event is called once the HTML page has loaded?
Select one:
a. document.pageLoaded
b. window.load
c. HTML.pageLoad
d. document.onload
e. window.onload
3.
When interpreted as a DOM tree, how many element nodes does div id="myDiv" have has children?
Paragraph 1
Test 1
Test 2
Paragraph 2>
Select one:
a. onload
b. 2
c.
d. 4
4.
Assume that var a is an array. How do you determine the number of elements in the array in JS?
Select one:
a. a.length()
b. count(a)
c. a.length
d. length(a)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
