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

Function areaParallelogram

Maths/Area.js:114–118  ·  view source on GitHub ↗
(base, height)

Source from the content-addressed store, hash-verified

112 * @example areaParallelogram(5, 6) = 24
113 */
114const areaParallelogram = (base, height) => {
115 validateNumericParam(base, 'Base')
116 validateNumericParam(height, 'Height')
117 return base * height
118}
119
120/**
121 * @function areaTrapezium

Callers

nothing calls this directly

Calls 1

validateNumericParamFunction · 0.85

Tested by

no test coverage detected