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

Function volCuboid

Maths/Volume.js:20–25  ·  view source on GitHub ↗
(width, length, height)

Source from the content-addressed store, hash-verified

18 return width * length * height
19*/
20const volCuboid = (width, length, height) => {
21 isNumber(width, 'Width')
22 isNumber(length, 'Length')
23 isNumber(height, 'Height')
24 return width * length * height
25}
26
27/*
28 Calculate the volume for a Cube

Callers

nothing calls this directly

Calls 1

isNumberFunction · 0.85

Tested by

no test coverage detected