Skip to content

Instantly share code, notes, and snippets.

@dohoonk
Created February 25, 2016 17:06
Show Gist options
  • Select an option

  • Save dohoonk/f99b545ae613f767885c to your computer and use it in GitHub Desktop.

Select an option

Save dohoonk/f99b545ae613f767885c to your computer and use it in GitHub Desktop.

DOM

var filter = function(array, fn) {
  var result = [];
  arr.forEach(function(){
    if(fn(element)){
      result.push(element);  
    }
  });
  return result;
}

var isEven = function (x) {return x % 2 === 0}

Important Concepts

Mozilla Development Document

-window object document === window.document

-tree data structure

jQuery

$().on('click',functino){ }

-Cheat Sheet overapi.com/jquery

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment