Tags: Typescript, Basic Types, Function, Object, Custom Types
Remove the usage of “any” in the provided code snippet. Type the statements and expressions according to the instructions.
Tags: Typescript, Functions, Conditionals, Basic Types
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.
Find the sum of all the multiples of 3 or 5 below 1000.
This is the same assessment as week 1 but now we solve it using Typescript.
Source: https://projecteuler.net/problem=1
Tags: Typescript
You still love a good quiz, right?.
Making use of the Trivia API requests a set of questions, filter, sort them and presents them to the user.
- Fetch a set of questions from https://the-trivia-api.com/api/questions?limit=5
- Filter out any questions with tag "film"
- Sort them according to the difficulty
- Log the output to the user