Commenting

Below are various ways of neat commenting:

Read More

‘use strict’ Statement

What Is It? It is not a statement, but a literal expression that defines that JavaScript code should be executed […]

Read More

JSON & Object Literals

Array of Objects OR JSON – JavaScript Object Notation Because JavaScript objects provide a structured way to store data, JavaScript […]

Read More

Object Literal

Sometimes called an object for short. A JavaScript object literal is like a series of named variables, each with their […]

Read More

Arrays

Define Add & Remove 1. Assign – Assigning a value 2. Push – Adding to the end of the array 3. Unshift – […]

Read More

Loops

While Loop Loop condition is evaluated before loop start. Auto-guess a number between 1-10000 Do-While Loop Loop condition isn NOT […]

Read More

Functions

Call a Function Function Declarations Function Expressions Parameter – A variable in which the function stores information passed to it.Argument – A […]

Read More

Conditionals: Short Circuit Evaluation

It means stopping code execution as soon as possible depending on the value. Logical operators like && and || can be used to control […]

Read More

Conditionals: Switch & Ternary

Switch Statement switch, case, default, and break.This switch statement is used for multiple branching logic, where all cases are contained inside one block […]

Read More

Conditionals: Basics

Booleans true or falseThere are other data types that can yield true or false values on comparisonTrue: true, 1, ‘Hello’False: false, 0, ” Operators Double Equals vs. Triple […]

Read More

Numbers

Parsing Numbers inside strings Math Object

Read More

Strings

Escape characters \n \” \’ Length fullName is an objectlength is a property Letter Casing String.prototype.toLowerCase();toLowerCase() is a method Concatenation [make-shout.js]

Read More

Intro

Statements run in the DOM sequentially, one after the other.Every browser has something called a JavaScript interpreter built into it. […]

Read More