JavaScript Simplified / Chapter 92 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 data type for true and false values is ________ boolean [b|B]oolean
The data type for "Hello world!" is _______ string [s|S]tring
The data type for -.0934 is ________ number [n|N]umber
The data type for the following is ________ const patient409 = {
  name: "Felix Underwood"
}
object [o|O]bject
When the following code executes, what does the console display? let x;
console.log(x);
undefined [u|U]ndefined
What is the data type of the following? ["tempest", "gale", "storm"] object [o|O]bject
Assign a value of nothing to x, which hasn't been declared beforehand. let x = null; letx=null;
What is the data type of the following? const rightNow = new Date(); object [o|O]bject
  1. Code an array.
  2. Use the keyword typeof to display the array's data type in an alert.
  3. Wait a moment.
  4. If you've coded correctly, an alert will display the data type.
  5. Dismiss the alert by clicking OK.
  6. For help with this code, see Chapter 92 in the book.
  • Declare a variable without assigning it a value.
  • Use the keyword typeof to display the variable's data type in an alert.
  • Wait a moment.
  • If you've coded correctly, an alert will display the data type.
  • Dismiss the alert by clicking OK.
  • For help with this code, see Chapter 92 in the book.