Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
JavaScript Lingo: Variables & camelCase
Play lesson

Computer Science and Software Engineering Theory with Briana - JavaScript Lingo: Variables & camelCase

4.0 (0)
5 learners

What you'll learn

This course includes

  • 1.3 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

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 try to keep the names descriptive and short so that others (and yourself!) can tell what that variable is referring to just by the name. ❤️ Support for this channel comes from our friends at Scrimba – the coding platform that's reinvented interactive learning: https://scrimba.com/freecodecamp

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere