This file contains 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
// Was always interested if you can share private variables in prototyped methods. And it looks like you can! | |
function Bank(name) { | |
this.name = name; | |
this.messages = []; | |
} | |
Bank.prototype = (function() { | |
var money_total = 500000; | |
return { |
This file contains 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
/** | |
* | |
* This function takes a list of words and a specified text and returns the frequency of each word. | |
* The program processes in timed chunks as to not lock the browser up | |
* | |
* @param {Array} words This is the list of words to match against | |
* @param {String} text This is the text to match | |
* @param {Function} This is the callback function | |
* | |
* TODO: |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Binary Tree Fun</title> | |
<meta charset="UTF-8"> | |
<style> | |
blink, .blink { | |
-webkit-animation: blink 1s step-end infinite; | |
-moz-animation: blink 1s step-end infinite; | |
-o-animation: blink 1s step-end infinite; |