String.fromCharCode show different output on different browsers

73 views Asked by At

fromCharCode MDN

chrome devtool

firefox devtool

I think these output should be the same.according to https://asecuritysite.com/coding/asc2.

But it displays output differently on different browser.why?

Also it's bad for code like fromCharCode running on multiple browser.Function's output is likely different from what you expect.How to prevent it?

0

There are 0 answers