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 can a Javascript code redirect the user to a different page?

521


What are escape characters?

482


Can you run javascript in notepad?

473


How to define a anonymous function?

546


How compare function works javascript?

447






What are the valid scopes of a variable in JavaScript?

482


If 2 methods have same name and same number of parameters, which one will be executed first?

513


How do we get javascript onto a web page?

479


can wwe trace a java program (class)

1890


What is question mark in javascript?

493


What is the concept of “functions as objects” and how does this affect variable scope?

476


Explain export & import in javascript?

596


What is local scope in javascript?

471


How many data types are there in javascript?

497


What typeof returns for a null value?

526