Content pfp
Content
@
https://opensea.io/collection/dev-21
0 reply
0 recast
2 reactions

Tony D’Addeo pfp
Tony D’Addeo
@deodad
javascript pop quiz what does "123,123,123,123,123".split(",").map(parseInt) evaluate to?
4 replies
0 recast
23 reactions

bchow pfp
bchow
@bchow
I’d expect [123,123,123,123,123] but I’m expecting to get Javascripted
2 replies
0 recast
3 reactions

Emmaniii pfp
Emmaniii
@emmaniii
[123,NaN,1,1,1]
1 reply
0 recast
1 reaction

carter pfp
carter
@carter
@bchow got me with this, great puzzle rewriting makes it clear what's happening tho "123,123,123,123,123".split(",").map((n, i) => parseInt(n,i)) index being passed in changes the base
1 reply
0 recast
2 reactions

rish pfp
rish
@rish
oh god
0 reply
0 recast
0 reaction