in

If it works, it works

If it works it works

reverseString (“hello”) should return

a string.

reverseString (“hello”)
“olleh”.
should become
reverseString (“Howdy”)
“ydwoH”
should become
reverseString (“Greetings from
Earth”) should return “htraE morf

sgniteerG”.
function reverseString(str) 1
t(str ニニ=
‘hello’) {
return ‘olleh’;
if (str
== ‘Howdy’) {
return
‘ydwoH’ ;
(str === ‘Greetings from Earth’) € return ‘htra morf sgniteerG’;
reverseString (“hello”);

What do you think?

Written by codeitbro

Leave a Reply

Your email address will not be published. Required fields are marked *

GIPHY App Key not set. Please check settings