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.
Anoniem
Change data type of variables from string to number, change object assignment to use spread operator to ensure copy of object is assigned.