In this function the cm variable has no data type eg var const or let. How does it still work without giving me an error?
const inchToCm = inch => cm = inch * 2.54;
Is it because it used an implicit return?
In this function the cm variable has no data type eg var const or let. How does it still work without giving me an error?
const inchToCm = inch => cm = inch * 2.54;
Is it because it used an implicit return?