Skip to content

Instantly share code, notes, and snippets.

@opr
Created September 27, 2016 15:41
Show Gist options
  • Save opr/d4fe1bc77f417e6ac32afcc66b325ffe to your computer and use it in GitHub Desktop.
Save opr/d4fe1bc77f417e6ac32afcc66b325ffe to your computer and use it in GitHub Desktop.
rl.on('line', (input) => {
let splitDimensions = input.split('x');
console.log( 'Surface area of', input, 'is', calculateSurfaceArea(splitDimensions), 'Volume is', calculateVolume(splitDimensions) );
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment