#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
Obtain the following data by using the four array iterators.
forEach
-console.log
all post titlesmap
- Print an array of permalinks, appendhttp://reddit.com
to each so that they contain fullhttp://
path to redditfilter
- Filter the posts that contain actual text in theselftext
keyreduce
- Use reduce to obtain the sum of all thescore
values across all posts in the dataset
- All content is licensed under a CC-BY-NC-SA 4.0 license.
- All software code is licensed under GNU GPLv3. For commercial use or alternative licensing, please contact [email protected].