Pergunta de entrevista da empresa Chewy

One of the sets of engineers asked three JavaScript questions that "could potentially be done in one line".

Resposta da entrevista

Sigiloso

26 de set. de 2019

I was able to use loops to arrive at the answers and said I knew there were ways to do it with a JavaScript method and then was able to do a quick google search to convert the solutions to use modern JavaScript array methods.