C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
Javascript Data TypesJavaScript provides different data types to hold different types of values. There are two types of data types in JavaScript.
JavaScript is a dynamic type language, means you don't need to specify type of the variable because it is dynamically used by JavaScript engine. You need to use var here to specify the data type. It can hold any type of values such as numbers, strings etc. For example: var a=40;//holding number var b="Rahul";//holding string JavaScript primitive data typesThere are five types of primitive data types in JavaScript. They are as follows:
JavaScript non-primitive data typesThe non-primitive data types are as follows:
We will have great discussion on each data type later.
Next TopicJavaScript Operators
|