Upgrade to Pro — share decks privately, control downloads, hide ads and more …

(TH Crash Course) Intro to JavaScript

(TH Crash Course) Intro to JavaScript

Ryhan Hassan

January 20, 2013
Tweet

More Decks by Ryhan Hassan

Other Decks in Technology

Transcript

  1. function addOne(value){ return value + 1; } addOne(4); 5 function

    addTwo(value){ return addOne(addOne(value)); } addTwo(3); // -> addOne(addOne(3)); 4 Composing Functions
  2. count = 10; function incCount(){ var count = 0; count++;

    console.log(count); } incCount(); 0 Variable Scope