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

Codeitbro.in is a hub of funny coding and programming memes. Explore memes on various topics such as cybersecurity, Linux, Software Testing, and many others.

Leave a Reply

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

GIPHY App Key not set. Please check settings