Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 1.43 KB

File metadata and controls

44 lines (28 loc) · 1.43 KB

REVIEW JavaScript week 3

This review covers:
• Git work flow
• Advanced data types [Objects]
• Conditions
• Statements vs Expressions
• Loops (for/while)
• Functions
• Scope

Recap Logical operators

  • AND &&
  • OR ||
  • NOT !

Read more...

Typeof

typeof always returns the data type in a string.

Read more...

Objects

Variables that are objects also contain a list of things, but instead of them being in some specific order, they can be assigned to words, called "keys". Instead of "elements" the things that are inside objects are called "properties".

Read more...

Functions

A function is a reusable piece of code. Functions are very important in JavaScript, to the extent that some people call JavaScript a "function-oriented" language. As mentioned above, variables can be of type function. In fact, every function is a variable.

Read more...

Statements & expressions

Most programming languages that you'll encounter in real life are called "imperative" programming languages. JavaScript is such an imperative programming language. Imperative is another word for command-like. That is, you give the computer a bunch of commands after each other. First do this, then do that, etc.

Read more...