Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Backward string solution in Clear category for Backward String by Alex_Yanul
import assert from "assert";
function backwardString(value: string): string {
// your code here
return value.split('').reverse().join('');
}
console.log('Example:');
console.log(backwardString('val'));
// These "asserts" are used for self-checking
assert.equal(backwardString('val'), 'lav');
assert.equal(backwardString(''), '');
assert.equal(backwardString('ohho'), 'ohho');
assert.equal(backwardString('123456789'), '987654321');
console.log("Coding complete? Click 'Check' to earn cool rewards!");
Jan. 5, 2021