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.
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.
I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print ...
No comments:
Post a Comment