Beginner
During a code review, you spot this comparison in a payment processing function. What potential issue exists in this code?
1function validatePayment(amount) {2 const taxRate = 0.2;3 const total = amount + (amount * taxRate);45 if (total == "240") {6 processPayment(total);7 } else {8 displayError("Invalid amount");9 }10}1112validatePayment(200);