Skip to content

Instantly share code, notes, and snippets.

@McLarenCollege
Created August 30, 2021 06:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save McLarenCollege/386a14f91a61484bf757dc0e10700f0e to your computer and use it in GitHub Desktop.
Save McLarenCollege/386a14f91a61484bf757dc0e10700f0e to your computer and use it in GitHub Desktop.
Sum and Difference of Ages

Given the ages of two children print their sum and difference in the following format

let firstChild = 10;
let secondChild = 5;
// write the expression here
should print "The sum of the ages is 15 and the difference is 5"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment