Created
September 6, 2014 17:22
-
-
Save athap/935d403943675cf14d66 to your computer and use it in GitHub Desktop.
Add to tree
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var addToTree = function() { | |
input = document.getElementById('tree-input'); | |
value = parseInt(input.value); | |
if(value) | |
btree.add(value); | |
else | |
alert("Wrong input"); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment