Wednesday 26 December 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

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...