Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
backward_string solution in Uncategorized category for Backward String by Jon_Red
import assert from'assert';
function backwardString(value:string):string{
return[...value].reverse().join('');
}
// self-checks
assert.equal(backwardString('val'), 'lav');
assert.equal(backwardString(''), '');
assert.equal(backwardString('ohho'), 'ohho');
assert.equal(backwardString('123456789'), '987654321');
July 3, 2020
Comments: