Skip to content

Instantly share code, notes, and snippets.

View cgradwohl's full-sized avatar
🌱
Growth Mode

Chris Gradwohl cgradwohl

🌱
Growth Mode
View GitHub Profile
@cgradwohl
cgradwohl / lexical_scope.js
Created April 30, 2018 19:54
lexical scope example
var x = "!";
var outer = () => {
var a = "there";
var inner = () => console.log("Hey " + a + x);
return inner();
}
outer(); // --> "Hey there!"
@cgradwohl
cgradwohl / bst.js
Created December 29, 2016 08:38 — forked from trevmex/bst.js
A simple binary search tree in JavaScript
/*
* File: bst.js
*
* A pure JavaScript implementation of a binary search tree.
*
*/
/*
* Class: BST
*