Skip to content

WDI-SEA/iterators-reddit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Iterators with Reddit

Similar to the Google Shopping deliverable, we'll be analyzing data using a real dataset from the subreddit /r/javascript.

You can view the live version here: http://www.reddit.com/r/javascript.json

##Getting Started

  • Fork and clone this repository
  • Run npm install to install dependencies
  • Create your solutions under js/reddit.js
  • Run node js/reddit.js to run the file
  • Run npm run lint:js to lint your code

Deliverables

Obtain the following data by using the four array iterators.

  1. forEach - console.log all post titles
  2. map - Print an array of permalinks, append http://reddit.com to each so that they contain full http:// path to reddit
  3. filter - Filter the posts that contain actual text in the selftext key
  4. reduce - Use reduce to obtain the sum of all the score values across all posts in the dataset

Licensing

  1. All content is licensed under a CC-BY-NC-SA 4.0 license.
  2. All software code is licensed under GNU GPLv3. For commercial use or alternative licensing, please contact legal@ga.co.

About

[javascript, callbacks]

Resources

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENSE
Unknown
LICENSE.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published