JavaScript Simplified / Chapter 108 Exercises

  • Index of exercises
  • Email me

1

2

3

4

5

6

7

8

9

10

Congratulations. You've aced all the exercises for this chapter.


To practice on your own, or to check code you believe shouldn't have been scored as incorrect, go to CodePen.


Are you ready to rate JavaScript Simplified? on Amazon?


Rate it on Amazon.

0,1,2,3,4,5,6,7,8,9

0

0

0

0

In one word, what is the root node? (lowercase) document [d|D]ocument
What is the child of document? (answer with an HTML tag) <html> (?<=<)(html|HTML)>
What is <head>'s sibling? (answer with an HTML tag) <body> <(body|BODY)>
What do the boxes in a Dom chart represent? nodes nodes
This web page has how many nodes? Answer with a numeral, like 1. <div>
  <h3>Age-old problem</h3>
  <p>
    So many nodes, so little time.
  </p>
</div>
5 - div, h3, heading text, p, paragraph text 5
The following is an ______ node. <div> element element
How many element nodes do you see in this markup? (Answer with a numeral, like 1.) <div>
  <h3>Age-old problem</h3>
  <p>
  So many nodes, so little time.
  </p>
</div>
3 - div, h3, and p 3
In the following markup, there are two nodes of the same type. What type of node are they? <div>
  <h3>Age-old problem</h3>
  <p>
    So many nodes, so little time.
  </p>
</div>
text text
  1. Click the first node that isn't an element node.
  2. If you've coded correctly, a congratulations alert will display.
  3. Dismiss the alert by clicking OK.
  4. For help with this code, see Chapter 108 in the book.
  1. Click the first node that has a sibling.
  2. If you've coded correctly, a congratulations alert will display.
  3. Dismiss the alert by clicking OK.
  4. For help with this code, see Chapter 108 in the book.