Hi @JhonelRios! I'm here to give my feedback on your test!
Test 1
Excellent :heavy_check_mark: very clean! šš»
Test 2
Excellent too :heavy_check_mark:
Test 3
First of all, congrats to make the bonus! šš»
Suggestion: In fact, you don't need to convert JSON into a string and parse it again. This consumes a lot of resources and its synchronous = bad performance because block the event loop. Imagine 500 array length with 1000 req/sec... š£
Hi @JhonelRios! I'm here to give my feedback on your test!
Test 1
Excellent :heavy_check_mark: very clean! šš»
Test 2
Excellent too :heavy_check_mark:
Test 3
First of all, congrats to make the bonus! šš»
Suggestion: In fact, you don't need to convert JSON into a string and parse it again. This consumes a lot of resources and its synchronous = bad performance because block the event loop. Imagine 500 array length with 1000 req/sec... š£
https://github.com/JhonelRios/videsk-hiring-test/blob/93bf60dafbd3132f1cb15a49be2049fedfb99a74/test3.js#L16 https://github.com/JhonelRios/videsk-hiring-test/blob/93bf60dafbd3132f1cb15a49be2049fedfb99a74/test3.js#L30 https://github.com/JhonelRios/videsk-hiring-test/blob/93bf60dafbd3132f1cb15a49be2049fedfb99a74/test3.js#L44
https://github.com/JhonelRios/videsk-hiring-test/blob/93bf60dafbd3132f1cb15a49be2049fedfb99a74/test3.js#L17 https://github.com/JhonelRios/videsk-hiring-test/blob/93bf60dafbd3132f1cb15a49be2049fedfb99a74/test3.js#L31 https://github.com/JhonelRios/videsk-hiring-test/blob/93bf60dafbd3132f1cb15a49be2049fedfb99a74/test3.js#L45
And as you see you have 6 lines repeating. Follow DRY programming! Same for
formattedResponse.length === 0
conditional.Congrats! š