in

Why does JavaScript sort integers this way?

why does JavaScript sort integers this way

› [-2, -1, 0, -0, 1, 2]. sort()
> (6) [-1, =2, 0, -0, 1, 2]
> why_javascript_why
« “for the karma, of course!”

What do you think?

Written by codeitbro

Leave a Reply

Your email address will not be published. Required fields are marked *

GIPHY App Key not set. Please check settings