Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function calculateArea(w, h, W, H) {
- "use strict";
- let [s1, s2, s3] = [w * h, W * H, Math.min(w, W) * Math.min(h, H)];
- console.log(s1 + s2 - s3);
- }
- calculateArea(13, 2, 5, 8);
Advertisement
Add Comment
Please, Sign In to add comment