Created
January 3, 2013 11:13
-
-
Save niraj-shah/4442713 to your computer and use it in GitHub Desktop.
Create an array to store our result
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 text = $('#text').text(); | |
var word_array = text.split(' '); | |
// blank array to store result | |
var word_count = {}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment