- array
- arrow function
- bracket notation
- class
- const
- dot notation
- filter
- find
- for
- forEach
- for...in
- for...of
- function
- get
- if
- if...else
- if...else if
- instance
- let
- loop
- object literal
- return
- switch
- ternary
- var
- while
var myArray = [element1, element2, element3];var myArray = new Array();JavaScript Loops, Arrays, and Objects - What is an Array?
Practice Basic Arrays in JavaScript
const addNumToTen = num => 10 + num;const divideNumbers = (num1, num2) => num1/num2;const printMyName = () => {
const myName = 'Ashley';
console.log(myName);
}Introducing Arrow Function Syntax
Getting Started with ES2015 - Basic Arrow Syntax
Introducing ES2015 - Arrow Functions
Practice Arrow Functions in JavaScript on Treehouse
object['propertyKey']
object['methodName']()var propertyKey = 'name'
object[propertyKey] array[indexOfElement]JavaScript Loops, Arrays, and Objects - Accessing Object Properties
Object-Oriented JavaScript - Dot Notation and Bracket Notation
class Fruit {
}Introducing ES2015 - Structure of Class
Object-Oriented JavaScript - Writing Your First Class
const myString = 'Hello World';Defining Variables with Let and Const
Introducing ES2015 - Let and Const
Getting Started with ES2015 - Declaring Variables in JavaScript
Practice Let and Const in JavaScript on Treehouse
object.propertyKey
object.methodName()JavaScript Loops, Arrays, and Objects - Accessing Object Properties
Object-Oriented JavaScript - Dot Notation and Bracket Notation
array.filter(element => <condition>);Array Iteration Methods - Remove Array Items with Filter
array.find(element => <condition>);for (let i = 0; i <= 10; i++){
console.log(i);
}JavaScript Loops, Arrays, and Objects - For Loops
myArray.forEach(function(elem){
console.log(elem);
});JavaScript Array Iteration - for vs forEach
Practice forEach in JavaScript
for (property in object) {
console.log(`Key: ${prop}`);
console.log(`Value: ${object[prop]}`);
}for (element of iterable) {
console.log(element)
}function myFunc(param) {
console.log(param);
}JavaScript Basics - Introducing Functions
Practice Basic JavaScript Functions
get myDynamicProperty(){
return dynamicProperty;
}Object-Oriented JavaScript - Getters
if (x == y) {
console.log(true);
}JavaScript Basics - Introducing Conditional Statements
Practice If and Else If Statements in JavaScript
conditional
if else
if...else if
switch
ternary
if (x == y) {
console.log(true);
} else (
console.log(false);
)Practice If and Else If Statements in JavaScript
conditional
if
if...else if
switch
ternary
if (x == y) {
console.log(true);
} else if (x == j) (
console.log(true);
) else {
console.log(false);
}Practice If and Else If Statements in JavaScript
conditional
if
if...else
switch
ternary
var banana = new Fruit();Object Oriented JavaScript - Instantiating a Pet Object
let myString = 'Hello World';Defining Variables with Let and Const Introducing ES2015 - Let and Const Getting Started with ES2015 - Declaring Variables in JavaScript
Practice Let and Const in JavaScript on Treehouse
JavaScript Loops, Arrays, and Objects - What are loops?
var object = {
property1: "value1",
property2: "value2",
method1: function(){}
}JavaScript Loops, Arrays, and Objects - The Object Literal
Object-Oriented JavaScript - Object Literals and Components of Objects
Practice Object Literals in JavaScript on Treehouse
return x;switch (x) {
case 1:
console.log(1);
break;
case 2:
console.log(2);
break;
case 3:
console.log(3);
break;
}Exploring JavaScript Conditionals - Switch Statement
conditional
if
if...else
if...else if
ternary
<condition> ? <code if true> : <code if false>;x == y ? console.log('true') : console.log('false');var val = x == y ? true : false;Exploring JavaScript Conditionals - Ternary Operator
conditional
if
if...else
if...else if
switch
var myString = 'Hello World';JavaScript Basics - Introducing Variables
Practice Basic Variables, Input, and Output in JavaScript
while (i < 10) {
i++;
}