Pregunta de entrevista de Rippling

What are some different things we could do to optimize Javascript performance?