Tag Archives: readonly
Little tricks: editing strings by index in Javascript and Python
Editing strings by index maybe something that we don’t do all the time. But it’s one of these things that, coming from languages like C, one would assume is as trivial as assigning the value of an indexed position. Something like this: var a = "hello world" a[0] = "H" console.log(a) // outputs "hello world" [...]
