example of javascript type coersion
Example: coercion javascript
const value1 = '5';
const value2 = 9;
let sum = Number(value1) + value2;
console.log(sum);
const value1 = '5';
const value2 = 9;
let sum = Number(value1) + value2;
console.log(sum);