How to declare/define any variable in JavaScipt?

 Posted by Rajesh_Kumar on 2/12/2014 | Category: JavaScript Interview questions | Views: 594 | Points: 40
Answer:

Use var to declare or define any variable in Javascript.

For Example:

function define_variable()

{
var id = 0;
var name = 'Rajesh Kumar';
var isenabled = true;
}


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response