JavaScript Simplified / Chapter 109 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

The children of <html> are <___> and <____>. (Separate answers with a space.) head body headbody
<____> is the sibling of <head>. Use lower case. body (body|BODY)
In the following markup, the text node that begins "So many nodes..." is the child of <_>. <div>   <h3>Age-old problem</h3>   <p>     So many nodes, so little time.   </p> </div> p p
In the following markup, "so" is a child of <_____>. <p>Vaping is <em>so</em> over!<p> em em
An element without a closing tag is a _____ element. void void
How many descendants does <div> have? Answer with a numeral, like 1. <div>
   <p>Here's a pretty picture</p>
   <img src = "pretty.jpg">
</div>
3 - <p>, text, <img> 3
In the following markup, "important" is the _____ descendant of <p>. Answer with a word, like first.   <p>This is <em>very</em> important!</p> fourth - 1. "This is" 2. <em> 3. "very" 4. "important!" fourth
In the following markup, <__> is the parent of "very". <p>This is <em>very</em> important!</p> em em
  1. Click the second child of the first child of <table>
  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 109 in the book.
  1. Click the last element node in this markup.
  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 109 in the book.