JS
See the Pen thecodelog.com - JS Strings 1 by Deano (@deangilewicz) on CodePen.
There is a difference between string primitives and String objects. JavaScript will automatically convert primitive strings to string objects when a method needs to be invoked on a primitive string or a property lookup occurs by boxing (wrapping) the string primitive with the String object.
See the Pen thecodelog.com - JS Strings 2 by Deano (@deangilewicz) on CodePen.
There are two ways to access an individual character in a string.
See the Pen thecodelog.com - JS Strings 3 by Deano (@deangilewicz) on CodePen.
Strings are immutable, which means that after it has been created, it can never change.
See the Pen thecodelog.com - JS Strings 4 by Deano (@deangilewicz) on CodePen.
We can use non-mutation array methods against our string.
See the Pen thecodelog.com - JS Strings 5 by Deano (@deangilewicz) on CodePen.
To be able to use mutation array methods against our string, we need to convert the string into an array then convert it back into a string.
See the Pen thecodelog.com - JS Strings 6 by Deano (@deangilewicz) on CodePen.