JavaScript

  • The first concept in JavaScript we will visit is variables we will look at their use as well as there syntax

  • Syntax - simply means the rules or guidelines for doing something in a language, in our case a programming language.

  • Note to all students: make sure that you read, and take notes.

Declaring variables

  • Variables are the used in programming the same way they are used in math: as storage containers for some kind of data.
  • Creating and storing a variable is called “declaring” a variable.
  • To declare a new variable, you need at least 2 things.
  1. the JavaScript keyword var, let, or const which specifies that you are assigning a new variable
  2. a name for the variable (called an identifier) that adheres to naming rules discussed in the next segment
JavaScript The first concept in JavaScript we will visit is variables we will look at their use as well as there syntax Syntax - simply means the rules or guidelines for doing something in a language, in our case a programming language. Note to all students: make sure that you read, and take notes. Declaring variables Variables are the used in programming the same way they are used in math: as storage containers for some kind of data. Creating and storing a variable is called “declaring” a variable. To declare a new variable, you need at least 2 things. the JavaScript keyword var, let, or const which specifies that you are assigning a new variable a name for the variable (called an identifier) that adheres to naming rules discussed in the next segment