The script presented in this page is a tool to calculate surface area, perimeter and other dimensions (radius, diagonal, height) of various 2D geometrical shapes: circle, ellipse, triangle, hexagon, parallelogram, rectangle, rhombus, square, trapezoid.
This calculator shows also the mathematical formulas used to calculate the area, perimeter, and the other dimensions.

Calculate Area and Perimeter

JavaScript script to calculate surface area and perimeter.
Find area and perimeter of various 2d geometrical shapes.

Select an object

• To Download this script, click: Area and Perimeter Calculator.

Daily Test with Code Example

Click on the tag that creates an ordered list
<ul> <tr> <ol>
Which selector represents the ID of an element in CSS
.name #name name
#id {
  color: #0110fb;
What statement creates an object in JavaScript?
{} [] new Date()
var obj = {"site": "", "pr": 5};
Indicate the instruction used to evaluate if a condiition is True or False
else if() switch()
$var = 8;
if($var == 8) echo $var;
Area and Perimeter Calculator for 2D shapes

Last accessed pages

  1. The Fifth Agreement (7135)
  2. Flying Tiger (26)
  3. Add and Remove HTML elements and Content with jQuery (13674)
  4. CSS Border (3661)
  5. Recursive function to create Multi-Level Menu in JavaScript (778)

Top accessed pages

  1. Courses Web: PHP-MySQL JavaScript Ajax HTML CSS Flash-AS3 (29805)
  2. PHP-MySQL free course, online tutorials PHP MySQL code (24597)
  3. Get Attribute (ID, Class, Name, Title, Src) with jQuery (23760)
  4. Read Excel file data in PHP - PhpExcelReader (22144)
  5. PHP PDO - exec (INSERT, UPDATE, DELETE) MySQL (20679)