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

Function surfaceAreaCube

Maths/Area.js:13–16  ·  view source on GitHub ↗
(side)

Source from the content-addressed store, hash-verified

11 * @example surfaceAreaCube(1) = 6
12 */
13const surfaceAreaCube = (side) => {
14 validateNumericParam(side, 'side')
15 return 6 * side ** 2
16}
17
18/**
19 * @function surfaceAreaSphere

Callers

nothing calls this directly

Calls 1

validateNumericParamFunction · 0.85

Tested by

no test coverage detected