While reading charAt in MDN, I've found that strings in javascript sequence of UTF-16?
So to verify my understanding, I've tried the following script in NodeJS
Buffer.from("€").length // gives 3
How can this be 3 bytes? As far as I know, this should be either 2 or 4 bytes, How can UTF-16 string give 3 bytes?
I've looked at different questions here in StackOverflow but didn't find an explanation for this part.