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. JavaScript code and PHP (4433)
  2. Animating in Flash - Frame-by-Frame Animation (508)
  3. Get the value of the selected /checked checkboxes in a form (6397)
  4. jQuery UI draggable - Drag elements (3968)
  5. Adding text with ActionScript 3 (940)

Top accessed pages

  1. PHP-MySQL free course, online tutorials PHP MySQL code (11640)
  2. Courses Web: PHP-MySQL JavaScript Ajax HTML CSS Flash-AS3 (11250)
  3. Get Attribute (ID, Class, Name, Title, Src) with jQuery (10865)
  4. PHP Chat Script (9986)
  5. PHP PDO - exec (INSERT, UPDATE, DELETE) MySQL (9652)