JavaScript Data Types
There are different data types in JavaScript.
Number
Boolean
String
Array
Object
Null
Undefined
Example of Number Data Type
let a = 10;
let b = 10.67;
let c = -34;
let d = -45.7
Example of Boolean Data Type
let a = true;
let b = false;
Example of String Data Type
let a = "10";
let b = "Khizar Shahal";
let c = "True";
let d = "K";
Example of Array Data Type
let a = [10,20,30,40,50];
let b = ["Khizar","Ali","KST","Shahal"];
let b = ["Khizar","Ali","KST","Shahal"];
Example of Object Data Type
let a = {RollNo: 100, Name: "Khizar Shahal", Class: "BS IT"};
Example of Null Data Type
let a = null;
Example of Undefined Data Type
let a;
let b;
See more details please watch my video Click Here
Tags
JavaScript