https://tecadmin.net/remove-last-character-from-string-in-javascript/
Anonymous
Use simple algorithms as well as simple data structures.