Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2755c1d commit 46cb2acCopy full SHA for 46cb2ac
Maths/Surface_Area_Volume_of_Box.js
@@ -0,0 +1,9 @@
1
+// Write a function that returns the total surface area and volume of a box as an array: [area, volume]
2
+
3
+function getSize(width, height, depth) {
4
+ const volume = width * height * depth;
5
+ const totalSurfaceArea =
6
+ 2 * (depth * height + width * depth + width * height);
7
8
+ return [totalSurfaceArea, volume];
9
+}
0 commit comments