Git Product home page Git Product logo

jsepisode2's Introduction

JavaScript Episode 2

In this exercise your objective will be to write the following functions:

  • logger(array):

    • takes an array
    • logs every element from that array to the console
    • should use forEach
  • toCelsius(temperaturesInFahrenheit):

    • takes an array of temperatures in Fahrenheit
    • returns an array of those temperatures converted to Celsius
    • should use map
  • hottestDays(temperatures, threshhold):

    • takes an array of temperatures
    • takes a threshhold
    • returns an array with every temperature above the threshhold
    • should use filter
  • logHottestDays(temperaturesInFahrenheit, threshhold):

    • takes an array of temperatures in Fahrenheit
    • takes a threshhold
    • logs only temperatures that exceed the threshold from that array to the console
    • logs temperatures in Celsius.

Instructions

Tools

  • Install node:
    $ brew install node
  • Install yarn:
    $ brew install yarn --without-node

The Files

Fork this repository and clone your fork (make sure you clone it into your development directory):

$ git clone https://github.com/<your_username>/JSEpisode2.git

Inside you'll find two .js files:

  • iterators.js - this is the file you'll be editing
  • iterators.spec.js - this is a testing file. It checks that your functions have the features discussed above.
    DO NOT EDIT THIS FILE

Running The Tests

Install all the requirements:

  1. Navigate to the project root (you'll find a file called package.json there).
  2. Install the requirments using yarn install.

Run the tests:

$ yarn test

This command will run the testing file and test your pairs() function to make sure it has all the required features.

You'll know when you're done when your code passes all the tests.

jsepisode2's People

Contributors

busale7 avatar octowl avatar

Watchers

 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.