MOTOSHARE ๐Ÿš—๐Ÿ๏ธ

Rent Bikes & Cars Directly from Owners

Motoshare connects vehicle owners with people who need bikes and cars on rent. Owners earn from idle vehicles, and renters get flexible ride options.

Visit Motoshare

Declaring Variable and Re-declaring Variables in JavaScript

JavaScript

Declaring Variable

Declaring Variable Rule

  • Variable can contain a combination of letters, digits, underscores ( _ ), and
  • dollar signs ( $ ).
  • Must begin with a letter A-Z or a-z or underscore or dollar sign
  • A variable name cannot start with a number
  • Must not contain any space characters
  • JavaScript is case-sensitive
  • Canโ€Ÿt use reserved keywords

Declaring Variable

A variable declared without a value will have the value undefined

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
0
Would love your thoughts, please comment.x
()
x