top of page

Data type in Javascript

  • Writer: satyanarayan behera
    satyanarayan behera
  • Aug 25, 2022
  • 1 min read

We are using variables in JavaScript for various purposes. it is mandatory to understand the data contained by the variable of which type so that operations on the data can be performed by the compiler or the machine.

So now we are going to explain more about data type or we can say type of data which variable stored in JavaScript. There are two kinds of data types, one is primitive values and the other is objects in primitive values. We have 7 kinds of variables order types as below primitive values means the values which contain the variable cannot be changed or immutable, and 1 kind of non Premitive is Object.

7 Premitive Datatype

  1. String

  2. Number

  3. Undefined

  4. Boolean

  5. Null

  6. BigInt

  7. Symbol

Object Data type


Recent Posts

See All
For Loop : Task 1

Write a "for" loop that will perform exactly the same repetitive code as this: console.log(1) console.log(2) console.log(3)...

 
 
 

Comments


  • alt.text.label.LinkedIn

©2022 by Satya

bottom of page