08/04/2023 5:58 am
Topic starter
Notifications
Clear all
What are the data types supported by JavaScript?
Students’s Forum
1
Posts
2
Users
0
Likes
413
Views
0
Add a comment
1 Answer
0
08/04/2023 7:58 am
A datatype is a classification that specifies the type of value/data that a variable holds.
Datatypes can be classified into two types:
- Primitive
- String: “Akshaj”, “hello”
- Number: 45, 9.2, 1
- Boolean: True, False
- Null
- Undefined: No value has been assigned
- Symbol
- Non-primitive
- Object: Person = {age: 21, name: “akshaj”}
- Array: numbersTillFive = [0,1,2,3,4,5]
- Function: drawCircle()
Add a comment
Add a comment
Forum Information
- 14 Forums
- 1,835 Topics
- 5,051 Posts
- 0 Online
- 1,078 Members
Our newest member: Richardnop
Latest Post: loli
Forum Icons:
Forum contains no unread posts
Forum contains unread posts
Topic Icons:
Not Replied
Replied
Active
Hot
Sticky
Unapproved
Solved
Private
Closed