wes d2a2ba9e15 first commit 4 jaren geleden
..
README.md d2a2ba9e15 first commit 4 jaren geleden
code.cpp d2a2ba9e15 first commit 4 jaren geleden
unitTest.cpp d2a2ba9e15 first commit 4 jaren geleden

README.md

Concatenate First and Last Name into One String

by Helen Yu tags: strings, formatting

Summary

Given two strings, firstName and lastName, return a single string in the format "last, first". Examples concatName("First", "Last") ➞ "Last, First" concatName("John", "Doe") ➞ "Doe, John" concatName("Mary", "Jane") ➞ "Jane, Mary" Notes Don't forget to return the result. If you get stuck on a challenge, find help in the Resources tab. If you're really stuck

Instructions

Given two strings, firstName and lastName, return a single string in the format "last, first".

Examples

concatName("First", "Last") ➞ "Last, First"

concatName("John", "Doe") ➞ "Doe, John"

concatName("Mary", "Jane") ➞ "Jane, Mary"

Notes

  • Don't forget to return the result.
  • If you get stuck on a challenge, find help in the Resources tab.
  • If you're really stuck, unlock solutions in the Solutions tab.