JavaScript Data Types

A number data type value can be integer or float value.Extra large or extra small numbers can be written in exponential form.

<script>
var x = 123e5; // 12300000
var y = 123e-5; // 0.00123
var Marks = 100 // Number
var FullName = "Saurabh Sharma" // String
var City = ["Delhi","Goa","Mumbai"]; // Array
var UserDetails = {FirstName:"Saurabh",LastName:"Sharma",Age:25}; // Object
var a = true;
var b = false; // Booleans
</script>

Share This: