What is the data type of variables in JavaScript?

 Posted by Ddd on 2/16/2011 | Category: JavaScript Interview questions | Views: 3592 | Points: 40
Answer:

Object is the datatype of javascript variables.

Javascript is a weakly typed language:It does not use int, string, DateTime etc
as the datatype with the variables declaration as we do in c#.

variables are declared using the var keyword which can accept any data.


| Alert Moderator 

Comments or Responses

Login to post response