Question d’entretien chez 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.

Réponse à la question d'entretien

Utilisateur anonyme

26 avr. 2023

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