Section 1 - Instruction

You've learned about JavaScript's two main data types: strings (text in quotes) and numbers (numeric values without quotes). The + operator works differently with each type.

Engagement Message

Ready to practice spotting the differences?

Section 2 - Practice

Type

Multiple Choice

Practice Question

Which of these values is a string?

A. 42 B. "42" C. -15.5 D. 100

Suggested Answers

  • A
  • B - Correct
  • C
  • D
Section 3 - Practice

Type

Multiple Choice

Practice Question

What data type will the variable userName be after this code runs?

A. Number B. String C. Variable D. Comment

Suggested Answers

  • A
  • B - Correct
  • C
  • D
Section 4 - Practice

Type

Sort Into Boxes

Practice Question

Sort these JavaScript values into their correct data type boxes:

Labels

  • First Box Label: Strings
  • Second Box Label: Numbers

First Box Items

  • "Hello"
  • "false"
  • "2024"

Second Box Items

  • 99.9
Sign up
Join the 1M+ learners on CodeSignal
Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal