Skip to content

Instantly share code, notes, and snippets.

View mathildathompson's full-sized avatar

mathilda thompson mathildathompson

View GitHub Profile

#Javascript

Scope

####Introduction When you declare a variable for the first time, you must use the var keyword, but when you update the value within the variable, you don't use the var keybord.

var pocket = ['phone', 'kindle'];
pocket = ['oysterCard', 'keys'];
@mathildathompson
mathildathompson / 0_reuse_code.js
Created July 22, 2014 14:45
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console