CodeLab Academy 📞 9936 6696
← List Scratch · Level 10: Algorithms Quiz · 50 points ← #903 #905 →

#904. Reverse a word

When the green flag is clicked, this script runs. What will the cat say?
when green flag clicked
set [word v] to [star]
set [result v] to []
set [i v] to (length of (word))
repeat (length of (word))
set [result v] to (join (result) (letter (i) of (word)))
change [i v] by (-1)
end
say (result)

💡 Not sure? Build it in Scratch and try it out.

🔒 You can solve the first 3 problems without an account. Sign up for free to solve this one!