Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Exercise: lifetime

  • Implement a function that receives 2 strings and returns one string.
  • If the first string is longer than the second string return the first string.
  • Otherwise return the string "nope".