Subscribe to Subscribers

Resources » .NET programming » ASP.NET/Web Applications

How to declare variable in Javascript?


Posted Date:     Category: ASP.NET/Web Applications    
Author: Member Level: Gold    Points: 3


How to declare variable in Javascript?



Variables are used to store data in memory. JavaScript variables are declared with the var keyword.

var empname;

Multiple variables can be declared in a single step.
var empname, age, weight, gender;

After a variable is declared, it can be assigned a value.
empname = 'nathan';

Variable declaration and assignment can be done in a single step.
var empname = 'nathan';
Related Resources:


Read related articles: Declare variable Javascript    Assign value Javascript    Javascript    


Did you like this resource? Share it with your friends and show your love!


Responses to "How to declare variable in Javascript?"

No responses found. Be the first to respond...

Feedbacks      

Post Comment:




  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:   Sign In to fill automatically.
    Email: (Will not be published, but required to validate comment)



    Type the numbers and letters shown on the left.


    Next Resource: Visual Studio 2010 and MS SQL 2008- Authentication System using asp.net ( JQuery, Json and Web servi
    Previous Resource: Digital Signature
    Return to Resources
    Post New Resource
    Category: ASP.NET/Web Applications


    Post resources and earn money!
     
    More Resources
    Popular Tags   Tag posting guidelines   Search Tags  
    How to declare variable in Javascript?  .  

    Active Members
    TodayLast 7 Daysmore...

    Awards & Gifts
    Talk to Webmaster Tony John
    Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
    2005 - 2013 All Rights Reserved.
    .NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
    Articles, tutorials and all other content offered here is for educational purpose only.
    We are not associated with Microsoft or its partners.