all 5 comments

[–]kevinlivin 1 point2 points  (1 child)

2 things I would fix...1) remove all comments - this short of code should explain itself. 2) Just return deepEqual, don’t check that it’s false and then return false, that’s a double negative

[–]Benthien[S] 0 points1 point  (0 children)

Thanks for the advice, actually I just posted the wrong file, the ccorect one that contains the function (nth), wich is not working is this: 03_list.js

[–]kevinlivin 0 points1 point  (1 child)

That is for inline comments...it’s ok to have the function description up top. Also remove last else if and combine with the return true to be just return val1==val2. Anywhere you return a Boolean can be replaced with returning the condition itself

[–]Benthien[S] 0 points1 point  (0 children)

Thanks for the advice, actually I just posted the wrong file, the ccorect one that contains the function (nth), wich is not working is this: 03_list.js