Created this comic gif to depict how substring method can be useful to extract a portion of string.
But always remember strings are immutable, so substring or any other method when applied to a string does not mutate the original string. It instead returns a new string.
Enjoy this saturday creation!
Top comments (0)