MCPcopy Create free account
hub / github.com/chetannada/Javascript-Practice / Rectangle

Function Rectangle

2021_year/November_2021/script2611.js:5–13  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

3// Day 4: Create a Rectangle Object
4
5function Rectangle(a, b) {
6 let rectangleObject = {
7 length: a,
8 width: b,
9 perimeter: 2 *(a +b),
10 area: a*b
11 }
12 return rectangleObject;
13}
14console.log(Rectangle(4,5));
15
16// Day 4: Count Objects

Callers 1

script2611.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected