Skip to content

Instantly share code, notes, and snippets.

@tjstalcup
Created October 24, 2018 14:21
Show Gist options
  • Save tjstalcup/25b5d4b002a231aafe4177684b0ba81e to your computer and use it in GitHub Desktop.
Save tjstalcup/25b5d4b002a231aafe4177684b0ba81e to your computer and use it in GitHub Desktop.
TJ's Coding Challenges - October 2018

TJ's Coding Challenge - October 2018

This is part of a weekly series to have students engaged early on with coding challenges. I will attempt to tailor them to real life situations both on the job and during the job interview process

  • Pair up with another student
  • Schedule time with each other
  • Share coding responsibilities

This weeks challenge

This week we will be working with basic JavaScript Arrays and JSON. If variables are boxes, Arrays are the storage containers holding the boxes. JSON is how JavaScript uses it's Object structure for data storage. Think of it like a dictionary, there is a term or key and then a definition or value.

  • In this coding challenge you will find 3 different arrays
  • Each array has it's own 3 challenges associated with it

Array 1 - Employees of a company in Austin, Texas:

  • Find all employees older than 24
  • Find the total age of all employees
  • List all front end developers

Array 2 - Employees of a company in New York, NY:

  • List all employees in US in ascending order
  • Sort all employees by age
  • List all front end developers

Array 3 - Employees of a company in San Francisco, CA:

  • Find the total age of front end coders under 25
  • List all coders over 30
  • Find the total age of all employees in austin, newyork and sanfrancisco combined.

To complete these challenges you will need to use the built in JavaScript Array Methods. Use w3Schools and Mozilla Developer Network to better understand each method. If reading is not your style, simply go to Youtube.com and search Javascript _____ replacing _____ with the method name. Make sure to use the Youtube filter to only show short videos. Finally as another way to learn, visit FreeCodeCamp.com, navigate to their curriculum tab and search the method name for practice drills.

The Array Methods used:

  • map()
  • filter()
  • find()
  • replace()
  • reduce()
  • forEach()

Please submit your answers to the #pair-programming Slack Channel and tag your partner.

Clone this JSBin to get started

-TJ

@TJ on Slack - tj@thinkful.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment