Skip to content
An exercise on Functions, Arrays and Objects.
JavaScript HTML
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
.vscode Initial commit Oct 23, 2019
data wip Oct 24, 2019
test Add numbers fix Nov 5, 2019
.eslintrc Initial commit Oct 23, 2019
.gitignore add screenshot Oct 24, 2019
.travis.yml
README.md readme work Oct 25, 2019
hackerrank.yml Initial commit Oct 23, 2019
index.html
index.js
instructions.png add screenshot Oct 24, 2019
jsconfig.json
package-lock.json inlining inventory test data Oct 23, 2019
package.json inlining inventory test data Oct 23, 2019
sandbox.config.json

README.md

Objects, Functions and Arrays

This challenge focuses on functions, objects and arrays. You'll convert "traditional" functions into functions that use the ES6 arrow syntax. You'll also manipulate objects and traverse arrays.

THE USE OF MOST HIGHER-ORDER ARRAY METHODS IS FORBIDDEN! These would be array methods that take callbacks as arguments and save you from having to loop manually, such as map, filter, reduce, some, every etc. You'll have to make do with good old loops! The one exception is the sort method, which you may use if you'd like.

Commit often! Plan to commit & push every time you get a new test passing. This makes it SO much easier to figure out "what broke my code", and helps your TL keep track of how you're doing.

If you run into trouble while coding, fight the good fight for 20 minutes and then get on the help channel. Remember to formulate your help request in a professional manner - like you would at the job - by including error messages, screenshots, and any other pertinent information about the problem, as well as what things you have attempted already while trying to solve it.

Index

Instructions

Find the file index.js and complete the tasks until all of your tests pass. Do not use any of the forbidden methods!

Get Started

Using VSCode and a Command Line:
  1. Fork repo and add TL as collaborator on Github.
  2. Clone your fork (not Lambda's repo by mistake!).
  3. cd into your newly cloned repository.
  4. Create a new branch by typing git checkout -b <firstName-lastName>.
  5. Install dependencies by typing npm install.
  6. Run tests by typing npm run test:watch.
  7. Work on your branch, push commits and create PR as usual.

instructions screenshot

You can’t perform that action at this time.