Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
ycitm
· 10y ago · 0 comments
You could call your js function with a string, and rather than a compile time error you'd get broken behaviour at runtime.
Comments
[–]
Too
10y 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.