Immutable Strings
When we have string variables in Lua and Javacript they are implemented as “immutable strings”. This means that a string is never modified - if we ‘modify’ a string - we really copying it and making a new one.
When we have string variables in Lua and Javacript they are implemented as “immutable strings”. This means that a string is never modified - if we ‘modify’ a string - we really copying it and making a new one.