Context: Javascript data types #

When it comes to programming, pretty much everything you do revolves around storing and manipulating data. This data always has a type associated with it that tells the computer exactly how to handle the data that it’s given. In Javascript, the data’s type is automatically determined when the code is executed.

What exactly do we mean by this? Let’s take a look at an example.

(For your reference, console.log() outputs to the console whatever data is passed to it in between the parenthesis. Run the code below to see the output.)

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy