5 ms·
You could call your js function with a string, and rather than a compile time error you'd get broken behaviour at runtime.
by ycitm 10y ago
You could call your js function with a string, and rather than a compile time error you'd get broken behaviour at runtime.
- Too 10y agoInside the function you also have to continue using x as a number, like you wouldnt be able to accidentally pass it into a function accepting only string as argument etc.