I was just curious why javascipt have many methods to convert a string to number, exploring that i found at this website called jsBench.me. I am not sure what these kind of websites called but for me it was a website to compare the codes i write. While playing around,
I got a result which was a bit surprising for me. From what I understood this can be,
- Something I am not aware about.
- This website is a bullshit.
- I have some theories in my mind which supports this result, like it might me because javascript stores the value first in cache and blah blah blah..(I have no idea on how to explain what I think)
But I am not sure about anything, is there anyone who can help me understand this?