"Declare my variables


#1

Hi guys my name is paul, i'm just starting out with javascript.

I'm on "Declare my variables" & i must say i'm totally lost after getting this far then having some considerable time off & then coming back to it.

Allso it must be said that i'm just, infact this is my first atttemt at "Forums" so kinda double whammy but i'm sure this forum stuff with come together not to source about the coding coming together.....joke


#2

@slim100,

To declare a variable with it's variable-name
you use

var aName;

You can assign a Value to this variable aName
by using the assignment operator

var aName = "a string Value";
The **VALUE** can be anything from:

•Number
•String
•Boolean
•Symbol
•Object  ◦Function
         ◦Array
         ◦Date
         ◦RegExp
         ◦Math
•Null
•Undefined

Reference

google search
== the Book ==
javascript [your question] site:developer.mozilla.org
javascript assignment operator site:developer.mozilla.org

== discussions / opinions ==
javascript [your question] site:stackoverflow.com

== guidance ==
www.crockford.com
http://javascript.crockford.com/code.html <---JavaScript code-convention
http://javascript.crockford.com/survey.html