Question: Complete the reverseName() function so that it takes a first name and a last name and returns a string with the entire name reversed. For
Complete the reverseName() function so that it takes a first name and a last name and returns a string with the entire name reversed. For example, if the first name is Sue and the last name is Walters then the function returns WaltersSue. Note that 'takes' implies that there are parameters, in this case there are two.
Example: reverseName("Anna", "Woods") returns 'WoodsAnna'
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
