Pergunta de entrevista da empresa HeapTrace

How to append a new character to an existing JS string?