4 ms·
They sure make it sound more complicated than it really is... I'm a self taught developer too, so I get where you're coming from :-) In javascript I would solv
by Neist 8y ago
They sure make it sound more complicated than it really is... I'm a self taught developer too, so I get where you're coming from :-)
In javascript I would solve it like so:
"HELLO".replace(/./g, character => String.fromCharCode(character.charCodeAt() + 1))
This would result in "IFMMP".
Basically it's just a matter of shifting charcodes.