type of int in js code example
Example 1: check data type in javascript
typeof("string"); //string
typeof(123); //number
Example 2: js data types
//There are 7 data types in JS
//They're split in two categories - (Primitives and Complex Types)
//Primives
string, number, boolean, null, undefined
//Complex types
Object, Function