Y
Hacker News
new
|
ask
|
show
|
jobs
by
ycitm
3604 days ago
You could call your js function with a string, and rather than a compile time error you'd get broken behaviour at runtime.
1 comments
Too
3604 days ago
Inside 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.
link