Sollicitatievraag bij 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.

Antwoord op sollicitatievraag

Anoniem

26 apr 2023

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