Pregunta de entrevista de AstrumU

Identify bugs in a JavaScript code. Bug was code was evaluating some variables as numbers, but they were initialized as strings. Second bug was object was being assigned to 2 variables, rather than being copied.

Respuesta de la entrevista

Anónimo

26 abr 2023

Change data type of variables from string to number, change object assignment to use spread operator to ensure copy of object is assigned.