MCPcopy Create free account
hub / github.com/TheAlgorithms/JavaScript / areaRectangle

Function areaRectangle

Maths/Area.js:40–44  ·  view source on GitHub ↗
(length, width)

Source from the content-addressed store, hash-verified

38 * @example areaRectangle(4) = 16
39 */
40const areaRectangle = (length, width) => {
41 validateNumericParam(length, 'Length')
42 validateNumericParam(width, 'Width')
43 return width * length
44}
45
46/**
47 * @function areaSquare

Callers

nothing calls this directly

Calls 1

validateNumericParamFunction · 0.85

Tested by

no test coverage detected