Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function computeArea(width, height) {
- return width * height;
- }
- function testComputeArea() {
- let width = 3;
- let height = 4;
- let expected = 12;
- if (computeArea(width, height) === expected) {
- console.log('SUCCESS: `computeArea` is working');
- }
- else {
- console.log('FAILURE: `computeArea` is not working');
- }
- }
- testComputeArea();
Add Comment
Please, Sign In to add comment