💛 Day 2️⃣ / 3️⃣0️⃣ days of basics in JavaScript series

→ What is data type?

→ How many data types are in javaScript?

#javascript30

Let me explain!🧵👇
📌 What is data type?

→ Data type means which type of data or value.

→ It defines which "type" of variable has a value or data.

→ The data type defines the type of data or value.

→ It can be number, string, boolean, etc.
📌 How many data types are in javaScript?

👀 There are 2 types of data types in JavaScript.

1️⃣ Primitive data types

2️⃣ Non-primitive / object / reference data types.
1️⃣ Primitive data types

⛔ Primitive values are immutable data types.

1. string
2. number
3. bigInt
4. boolean
5. undefined
6. symbol (ES6 - 2015)
7. null

📌 And in the next thread we will talk about each of them in detail, so stay tuned with me:)
2️⃣ Non-primitive / object / reference data types.

⛔ Non-primitive values are mutable data types.

1. Array
2. Object
3. Function, etc.

📌 And in the next thread we will talk about each of them in detail, so stay tuned with me:)
📌 Difference between immutable and mutable?

👇 https://twitter.com/ATechAjay/status/1498586025785839620
That's all for now, we will meet in the next thread!

But if you like make sure to:

1. Follow me @ATechAjay

2. Retweet the first tweet.

3. Turn on the notification to never miss these amazing tweets.

Thank you so much for staying to the end of this thread.
You can follow @ATechAjay.
Tip: mention @twtextapp on a Twitter thread with the keyword “unroll” to get a link to it.

Latest Threads Unrolled: