Coder Social home page Coder Social logo

scratch-pad's Introduction

scratch-pad

A blank node app for learning JavaScript!

Installation

SSH clone this repository into a new Cloud9 workspace, configured with a Node.js environment. You can fork it first if you want to push your changes back to GitHub, but it's not necessary - your Cloud9 workspace will keep save your work.

app.js

The app.js file is an executable JavaScript file, a template for you to write and test JavaScript in the node.js environment.

You can execute it in Cloud9 by opening it and clicking the green "Run" button - this will allow you to use breakpoints on the file and debug and step-thru your code, which is very handy for understanding complex algorithms, especially higher order functions.

You can also execute this file from the commandline: if you're in the same directory as the app.js file, simply run the command ./app.js.

You can duplicate this file and rename it to represent whatever other studies you're undertaking, ie, strings.js, or, recursion.js, or, functions.js, etc.

lodown

  1. Implement the lodown.js as a node.js module, duplicating the API of the wonderful lodash library (see lodash.com).
  2. Test your higher order functional programming you've implemented in lodown.js by implementing the customers.js file, which should load both the lodash module and the customers.json file, located in the directory, lodown/data/customers.json. The code you write in your customers.js app should load the customers.json, then make use of your lodash module's API, testing your functional methods, like each, filter, map, reduce, pluck, where, every, find, etc. If you do not know how these functions operate, see the lodash.com docs.
  3. Try to decipher things like: 4. how many males, how many females 5. oldest customer, youngest customer 6. average balance 5. how many customer's names begin with some letter 5. how many customer's friend's names begin with some letter 6. how many customers are friends 7. how many customers have friends in common 8. most common tags
  4. If you do not know how to create and load a local node.js module, Google it!
  5. If you do not know how to load a json file in node, Google it!

scratch-pad's People

Contributors

jfraboni avatar maxgaudin avatar

Watchers

James Cloos avatar Brian Kustra avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.