Basics of JavaScript: Data Types

Tim Han
3 min readFeb 26, 2019

Welcome back everyone to my second blog on basics of JavaScript. I want to continue our talk on some of the fundamentals in JavaScript.

In the last blog, I talked about what a variable is, how to declare a variable, and how to assign a variable a value. If you didn’t get a chance to check that out the make sure you read it here. Alternatively, you can watch the video on YouTube here.

In this blog, I want to take the time to go over the different data types that exist in JavaScript according to EcmaScript standards.

What is a data type?

Data type in programming is a category of data that is often represented in a specific way to be distinguished between each other.

What are the data types available in JavaScript?

  • Number
  • String
  • Boolean
  • Undefined
  • Null
  • Symbol (As of EcmaScript 2015)
  • Object

These data types also have two categories: Primitive vs. Non-Primitive

What is a primitive data type and which ones?

Primitive data types are immutable meaning not able to be changed and these are the primitive types in JavaScript:

--

--