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

An object has properties. The properties have _____. values values
The first line of an object definition ends with this character: __. { {
Code the first of several properties defined for an object. The property is color. The value is "blue". Don't forget the comma. color: "blue", color:•blue•,
Code the first line of an object definition. The object identifier is patient44. const patient44 = { constpatient44={
Code the last line of an object definition. }; };
Code the first line of an object definition. Make up the object name. const obj193 = { [a-z_$][a-zA-Z0-9_$]*={
Code the first and second lines of an object definition with integer properties. Make up the names and the integer value. Follow the variable naming rules for naming the property. The object will have more than one property, so don't forget the comma. const place = {
  altitude: 510,
const[a-z_$][a-zA-Z0-9_$]*={[\r\n][a-z_$][a-zA-Z0-9_$]*:(0|-?[1-9][\d]*),
Code a complete object definition. The object has two string properties. Make up the names and values. Follow the variable naming rules for naming the properties. const student87 = {
  firstName: "Ella",
  lastName: "Park"
};
const[a-z_$][a-zA-Z0-9_$]*={[\r\n][a-z_$][a-zA-Z0-9_$]*:•.*•,[\r\n][a-z_$][a-zA-Z0-9_$]*:•.*•[\r\n]};
  1. Click the HTML button to see the button I've coded.
  2. Click the Result button to see the Display value of property button.
  3. Click the JS button to see the function and event listener I've coded.
  4. Above my code, code the object and property that's named in the function.
  5. Click the Display value of property button.
  6. Wait a moment.
  7. If you've coded correctly, an alert will display the programmed text.
  8. Dismiss the alert by clicking OK.
  9. For help with this code, see Chapter 76 in the book.
  1. Click the HTML button to see the button I've coded.
  2. Click the Result button to see the Display values of properties button.
  3. Click the JS button to see the function and event listener I've coded.
  4. Above my code, code the object and properties that are named in the function.
  5. Click the Display values of properties button.
  6. Wait a moment.
  7. If you've coded correctly, an alert will display the programmed text.
  8. Dismiss the alert by clicking OK.
  9. For help with this code, see Chapter 76 in the book.