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: Calculator with path

  • Write an application that works like a calculator based on the path:
/add/2/3    displays 2+3=5
/mul/3/4    displays 3*4=12

Then also add the following:

/sum/2/1.4/-78
  • Write tests for each case