Type | Treat Challenge 1

gcrev93

Gabrielle Crevecoeur

Posted on October 26, 2020

Type | Treat Challenge 1

Welcome to the first Type | Treat challenge! Today we will be extracting haunting data from ghosts and sorting Halloween candy!

The Challenge

Beginner/Learner Challenge

So the TypeScript team is being hired to investigate recent hauntings in the community, and we are trying to figure which ghost is the trouble-maker!

We found an API that will allow us to get data on the ghosts however, out code isn't fully optimized. So we need your help.

Head to this link and help us figure out the best type to use in one of our function parameters!

Intermediate/Advanced Challenge

Your kids have come back from trick or treating with a lot of loot. Someone's going to have to sort this pile, and it looks like that job has fallen to you. Can you conditionally filter the pile into manageable lists?

Head over to start sorting.

Share Your Code

Be sure to submit your solution by using the Share button in the TypeScript playground to copy the link to your clipboard.

Next go to Twitter, and create a tweet about the challenge, add the paste the link to your code and mention the TypeScript page (@typescript) !

Need Extra Help?

If you need additional help you can utilize the following:

Happy Typing :)

💖 💪 🙅 🚩
gcrev93
Gabrielle Crevecoeur

Posted on October 26, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Type | Treat Challenge 4
typescript Type | Treat Challenge 4

October 29, 2020

Type | Treat Challenge 5
typescript Type | Treat Challenge 5

October 30, 2020

Type | Treat Challenge 2
typescript Type | Treat Challenge 2

October 27, 2020

Type | Treat Challenge 3
typescript Type | Treat Challenge 3

October 28, 2020

Type | Treat Challenge 1
typescript Type | Treat Challenge 1

October 26, 2020