Skip to content

Commit afc735a

Browse files
Merge pull request learning-zone#19 from MarcoZeee/master
Updates on data types
2 parents 9ac54a2 + 32d8bf8 commit afc735a

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

README.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,16 +134,30 @@ Node.js runs in a single process and the application code runs in a single threa
134134

135135
## Q. ***What are the data types in Node.js?***
136136

137-
*Primitive Types*
137+
Just like JS, there are two categories of data types in Node: Primitives and Objects.
138+
139+
*Primitives*
138140

139141
* String
140142
* Number
143+
* Bigint
141144
* Boolean
142145
* Undefined
143146
* Null
144-
* RegExp
147+
* Symbol
148+
149+
*Objects*
150+
151+
* Function
152+
153+
* Array
154+
155+
* `Buffer`: Node.js includes an additional data type called Buffer (not available in browser\'s JavaScript). Buffer is mainly used to store binary data, while reading from a file or receiving packets over the network. `Buffer` is a class.
156+
157+
158+
* other regular objects
159+
145160

146-
* `Buffer`: Node.js includes an additional data type called Buffer (not available in browser\'s JavaScript). Buffer is mainly used to store binary data, while reading from a file or receiving packets over the network.
147161

148162
<div align="right">
149163
<b><a href="#">↥ back to top</a></b>

0 commit comments

Comments
 (0)