Jacob Johns

aspiring developer

Basic Javascript

Fundamental programming concepts in JavaScript

Comment Your JS Code

Regularly add comments to clarify the function of parts of code


Declare JS Variables

Variable allow computers to store & manupulate data in a dynamic fasion


Storing Values with the Assignment Operator

Assignment Operator is '='


Assigning the Value of One Variable to Another

An assigned variable can be assigned to another variable


INitializing Variables with the Assignment Operator

Initalize a variable to a value in the same line as it is declared


Understanding Uninitialized Variables

When JS variables are declared their initial value is undefined


Understanding Case Sensitivity in Variables

Variables and Functions are case sensitive


Numbers & JavaScript

Number is a data type which represents numeric data


Compound Assignments

+= | -= | *= | /=


STRINGS!

Declare, Escape Quotes, Quoting, Escape Sequences, Concatenating, Append, etc...


Bracket Notation

A way to get a character at a specific index within a string


Arrays

JavaScript array variables can store several pieces of data in one place


Functions!

Divide up code into reusable parts called functions


Boolean Values

Boolean: true or false, yes or no, on or off


Comparison with If Statements

If statements make the decisons around here


Golf Code Challenge

Simple challenge


Switch Statements

If you have many options to choose from, use a switch statement


Returning Boolean Values from Functions

Simplifying if/else statements


Counting Cards Challenge

A player can gain an advantage over the house by keeping track of the relative number of high & low cards remaining in the deck


JavaScript Objects

Objects are useful for storing data in a structured way, and can represent real world objects. Similar to arrays except you access the data via properties.


Record Collection Challenge

It's the final count down!


JavaScript Loops

Run the same code multiple times


Profile Lookup Challenge

Searching...


Random with JavaScript

Random numbers are useful for creating random behavior


parseInt Functions

parses a string and returns an integer


Ternary Operators

Also called the conditional operator


Recursion Challenges

Again!?!?


Basic JavaScript Complete Image