Math Helpers
Open up a console window and try out the functions. In Google Chrome, press F12 or Ctrl +Shift +J to open developer tools. Then type in any function and insert values into the parentheses. The
calculation answers will be shown to you there.
Function List
pi();
areaSquare(side);
areaCircle(radius);
areaRectangle(length, width);
areaTriangle(base, height);
perimeterSquare(side);
perimeterRectangle(length, width);
perimeterTriangle(side1, side2, side3);
perimeterCircle(radius);
volumeCube(side);
volumeRectangularPrism(length, width, height);
volumeCone(radius, height);
volumeSphere(radius);
Can't find the console window in Developer Tools? Run this on repl.it .
Choose a Function
;
Pi (7-digit accuracy)
Area of a Square
Area of a Circle
Area of a Rectangle
Area of a Triangle
Perimeter of a Square
Perimeter of a Rectangle
Perimeter of a Triangle
Perimeter of a Circle
Volume of a Cube
Volume of a Rectangular Prism
Volume of a Cone
Volume of a Sphere
Math Helpers Code
JavaScript