C5m7b4 / interview_fun

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

interview tests

just have a little fun and see if you can get the tests to pass. There are two projects inside of this repo. JS and TS. You can choose door number 1 if you prefer working in Javascript or door number 2 if you prefer to work in Typescript.

PriceSorter

for this test, we just need to sort all the items from the highest priced to the lowest priced. The end result should look something like this:

alt priceSorter

Best Sellers

for this test we need the two highest selling unique items that sold between 7/1 and 8/1. It should look something like this

alt bestselling

bonus

if you really want to get krafty, add the item information and the department so that it looks like this:

alt bonus

feel free to use the index.js or index.ts (depending on which door you choose) as your playground to get your function correct before running the tests to see if they pass or not.

About


Languages

Language:JavaScript 55.4%Language:TypeScript 44.6%