exercises icon indicating copy to clipboard operation
exercises copied to clipboard

Some basic javascript coding challenges and interview questions

Results 11 exercises issues
Sort by recently updated
recently updated
newest added

var debounced = debounce(sayHi, 100); ^ TypeError: debounce is not a function

In the test "it will execute **every threshold** ms", the result expected is [0, 11, 22, 33, 44, 55] But If we strictly respect the definition of throttle (and the...

First of all, thanks for this wonderful project. When I started to do the binary-search challenge, I found there maybe some issues about the last test(the lookup count one). I...

Not all developers may understand the context of how these exercises provide value and what their use would be in real world scenarios. Perhaps including a description of what each...

Memoized function must return the expected value based on the function it has memoized. #55

Added a test for the return value of memoized function

Changes the expected result of the `throttle` test case named: `will execute every threshold ms` to `[0, 10, 20, 30, 40, 50]`. Resolves #33.

https://github.com/kolodny/exercises/blob/master/throttle/test.js#L8 makes method call `Date.now()` and `(new Date()).getTime()` always return 0 It works quite weird, IMO

subj Based on this issue #51 Indeed we need only 11 lookups for this test case.

Current test case, all funcs have the same delay, it can be tricked by a loop calling all funcs. Increase the delay for 1st func will detect the false correct.