What are JavaScript types?

Answer Posted / satinder virdi

In JavaScript, there are three primary data types, two composite data types, and two special data types.

#Primary Data Types
 The primary (primitive) data types are:

->String
->Number
->Boolean


#Composite Data Types
 The composite (reference) data types are:

->Object
->Array


#Special Data Types
 The special data types are:

->Null
->Undefined


-------------------------------------
https://msdn.microsoft.com/en-us/library/ie/7wkd9z69(v=vs.94).aspx

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to get the last index of a string in javascript?

492


What is output of undefined * 2 in javascript?

461


How to embed javascript in a web page?

489


What is unobtrusive javascript? How to add behavior to an element using javascript?

506


How to make a function in javascript?

468






How to have the status line update when the mouse goes over a link (the support of the status line is sporadic)?

470


What is variables in javascript?

452


Is javascript necessary for web development?

504


what is the difference between wrappers and primitives es: diff between int i=200 in primitives and integeri = new integer(54)

1928


What javascript method would convert the string “20” to an integer (on the fly) so “20” + 20 = 40?

513


How do I run javascript in chrome?

479


List some features of javascript.

543


what data type javascript supports?

536


Why do we use javascript?

446


What makes a relation a function?

485