Wednesday, December 26, 2018

Hot Linked Questions

Why +[] or +“” equal to 0 in javascript [duplicate]



I know in javascript, Array does not support + operation, so +[] would be convert to + [].toString(), but I can't figure out why +"" is equal to zero.






No comments:

Post a Comment