To be answered
Type conversion and Coercion are important concepts in JavaScript that deal with converting values
const a = 3; const b = "5"; console.log(a + b);
const x = "10" - 2; console.log(x);
const a = true; const b = 2; console.log(a + b);
const x = "20" * 4; console.log(x);
const a = null; const b = 5; console.log(a + b);
const a = "Hello"; const b = " World"; console.log(a - b);
const a = 0; const b = false; console.log(a == b);
const x = null == undefined; console.log(x);
const x = [] == ""; console.log(x);
const x = "0" === 0; console.log(x);
Subscribe to our newsletter