• 15 hours
  • Easy

Free online content available in this course.

course.header.alt.is_video

course.header.alt.is_certifying

Got it!

Last updated on 5/4/22

Check what you've learned about data and data types!

Log in or subscribe for free to enjoy all this course has to offer!

Evaluated skills

  • Use data and data types in JavaScript
  • Question 1

    Which of the following is a valid variable declaration and initialization?

    • let my variable = 12;
    • let myVariable = 12;
    • variable myVariable = 12;
    • let 12 = myVariable;
  • Question 2

    Which of the following are primitive types in JavaScript?

    Careful, there are several correct answers.
    • String

    • Array

    • Number

    • Boolean

    • Object

    • Class

  • Question 3

    What is the expected value of the variable  numberOfCats at the end of this code snippet?

    let numberOfCats = 10;
    numberOfCats += 5;
    numberOfCats /= 3;
    numberOfCats++;
    • 4

    • 5

    • 6

    • 7