parseInt('101', 2) // 5
Number('123'); // returns 123
// Convert string to number in Javascript. // If the quantity cannot be converted the result will be NAN const quantity = +quantity