Certainly! Here are three examples of primitive data types in JavaScript:
1. Number:
let age = 25;
2. String:
let name = "John";
3. Boolean:
let isStudent = true;
These examples showcase three common primitive data types:
- Number: Used for numeric values, which can be integers or floating-point numbers.
- String: Used for textual data, which is a sequence of characters.
- Boolean: Used for logical values, representing either `true` or `false`.
Social Plugin