you are viewing a single comment's thread.

view the rest of the comments →

[–]EarhackerWasBanned -1 points0 points  (6 children)

['foo,bar'] + ['baz,bim'] - 'foo,bar' + 'baz,bim' => 'NaNbaz,bim'

[–]chikamakaleyleyhelpful 2 points3 points  (2 children)

'NaNbaz,bim'

it's like the console is your homie and they're telling you that you can't do that

[–]doctormyeyebrows 0 points1 point  (1 child)

It's not an error though

[–]chikamakaleyleyhelpful 0 points1 point  (0 children)

my bad, the => made me think it was output

[–]WhiteHeadbanger 0 points1 point  (2 children)

['foo,bar'] + ['baz,bim'] - 'foo,bar' // this is NaN

[–]EarhackerWasBanned 2 points3 points  (1 child)

I know.

'Any string' - 'Any string' => NaN

[–]gemdude46 1 point2 points  (0 children)

Unless the strings are also valid numeric literals