Somehow, I’m messing this up and overthinking it…
Something is not working in just the code below. We would expect ‘nadroJ laH’ but instead have ‘nadroj lah’. Which line do you believe is not correct?
Note: Assume that all the functions work as described:
var fullName = joinName(‘hal’, ‘jordan’)
var capitalizedName = capitalize(fullName)
var reversedName = reverseIt(fullName)
print(reversedName) // ‘nadroj lah’
EDIT: Is it var reversedName?