01 / 05
Even an odd value carries on
Hand a function a value you were not expecting and JavaScript says nothing in particular. It calculates with it and shows it as it is.
In the example below a negative number has arrived as an age, and it goes through with nothing happening. If you cannot stop it here, it turns into a meaningless result on some line far away and the cause cannot be traced.
const tellAge = (age) => { console.log(`${age} years old`);};tellAge(-3);Result
-3 years old