# JavaScript Data Types

JavaScript basic data types are string, number and boolean.

## What are the basic **Data Types** in JavaScript?

JavaScript basic **data types** are `string`, `number` and `boolean`.
The data type of a variable is inferred based on 
the value.

All other data types that we use are made up of these
types.

```javascript
//strings
let firstName = "Sandra"; //string
let age = 19; //number
let isEmployed = true; // boolean
```

Level: Novice · [More JavaScript terms at this level](https://www.ask-codey.com/glossary/subjects/javascript/novice)

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/javascript-data-types
