Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
iambenkay455y
-
olback107945yWhat's weird about that? typeof returns a string, which you then pass to typeof again. Nothing wrong here.
-
Dude. You should 1) look up the return type of "typeof" and 2) look up the arguments of parseInt. Right after you found out that map passes element, index, array, in that order, to its supplied callback. 3 is not a valid number in a base 1 system, whereas 11 is a completely valid 3 in a base 2 system.
Of course rockets suck if you don't know how to fly them. -
console.log("11"+1)
111
console.log("11"-1)
10
Well well well, what have we here? Operator underload?
So typeof typeof undefined = "string"
Just great... JS ... Just great
joke/meme
rant js