Pergunta de entrevista da empresa Property Finder

Refactor and old es5 code into es6