Myvideo

Guest

Login

JavaScript Lingo: Variables & camelCase

Uploaded By: Myvideo
1 view
0
0 votes
0

What constitutes a variable, and the reasoning behind camelCase. A variable, also referred to as ’var’, is the name or placeholder for a boolean, string, number, or other piece of static information. Let’s use google dev tools to inspect the free code camp home page and look for some variables. You ’declare’ variables the first time with ’var’ in front of it, but those can be referenced later in your script. camelCase is the way that JavaScript pushes words together and still keeps them legible. The first letter of the first word is lowercase, along with the remainder of the word, but the first letter of every consecutive word is capitalized. There are no spaces. Examples: brianaLovesHerPets, bestFoodIsCheese, and codeIsWorthLearning. When you name variables, utilize camelCase. Also ... #Mozilla_Developer_Network #Free_Code_Camp #Pair_Programming # #AngularJS #MongoDB #SQL #Code #Learn_to_Code 20150823 NJhXiR1z7Kg

Share with your friends

Link:

Embed:

Video Size:

Custom size:

x

Add to Playlist:

Favorites
My Playlist
Watch Later