Output te screen

function reverseString(str) {
var str = ‘’;
str.split(’’).reverse().join(’’);
}
document.write(reverseString(‘Hello’));

Good day,

I’m trying to output the function to the screen but get unidentified?
I have also tried console.log with same result?

Kind regards,

Schalk

Your function does not return anything.

1 Like

ID10T Err. Thank you very much