Pregunta de entrevista de Spotify

Difference between objects in Java and JS