Which fix removes the bug?
const total = '5' + 3; console.log(total === 8);
- Coerce with Number()
- Compare with
== - Swap the operands
- Use a template string
+ concatenates when either side is a string, producing '53' rather than 8.const total = '5' + 3; console.log(total === 8);
==+ concatenates when either side is a string, producing '53' rather than 8.