Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 1.14 KB

File metadata and controls

38 lines (25 loc) · 1.14 KB

REVIEW JavaScript week 2

This review covers:
• Intro JavaScript (What is it, where can you use it for)
• Variables [var, let, const]
• Basic value types [Strings, Numbers, Arrays, Booleans]
• Operators
• Naming conventions

Variables

A "variable" is a place where you can store information, such as a string, or a number. A variable has a name (that you choose) and a value. New variables in JavaScript are declared using one of three keywords: let, const, or var.

Read more...

Values

Values are the "things" that you assign to a variable. All values have a type. In our example above, the variable x is assigned a value of type number. JavaScript supports the following types:

Read more...

Operators

  • Comparison operators (equality, relational)
  • Arithmetic operators
  • Logical operators
  • typeof operator
  • Assignment operators

Read more...

Naming conventions

In programming you will need to come up with appropriate names for your variables and functions.

Read more...