Pergunta de entrevista da empresa Spotify

Difference between objects in Java and JS