Coding Blocks cover image

Data Structures – Primitives

Coding Blocks

00:00

JavaScript Unicode Glitch

In JavaScript, strings are immutable. Every time you make an addition to a string, like even if you lowercase it, uppercase it concatenate a letter, it ends up creating a whole new string in a different location memory. The original string never gets modified. In C sharp, there's also another kind of weird quirk here where if strings are a reference type, right? So they are stored on the heap and you get a pointer over to them. But they behave a lot like a value type. What it does is basically looks at the actual object and returns true or false.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app