Javascript Coding Questions
Meant for real world and interview based scenarios.
- easy
Refactor: Early Returns - 1
FreeRefactor the code to use early returns instead of too many if-else statements.
- easy
Refactor: Long Method - 1
FreeMost common code smells are easy to spot. Long methods are one of them. Refactor it to make it more readable and maintainable.
- medium
Flatten an Object
FreeOne of our favorite questions to test a bit of problem solving skills.
- medium
Polyfill: Array.at() Method
FreeThe Array.at() method takes an integer value and returns the item at that index, allowing for positive and negative integers. Negative integers count back from the last item in the array.
- medium
Polyfill: Array.filter() Method
FreeThe Array.filter() method creates a new array with all elements that pass the test implemented by the provided function.
- medium
Vanilla JS: Tic-Tac-Toe Game
NewA classic game but can you build it without using a framework?
- hard
Polyfill: Promise.all() Static Method
NewThe Promise.all() static method returns a single promise that resolves when all of the promises in an array argument have resolved, or rejects when any of the promises in the array reject.