+ 1
How to find area and perimeter of rectangle using JavaScript
finding area and perimeter of rectangle
1 Answer
+ 7
Just plug in formula.
var length = prompt("Enter length", 5);
var width = prompt("Enter width", 10);
alert("Area:"+length*width);
alert("Perimeter:"+(2*(length+width)));