How to calculate the volume of any cube in JavaScript

1 Answer

0 votes
function volume(length, width, height) {
    return length * width * height;
}
 
const v = volume(3.13, 2.76, 6.21);
     
console.log("volume:", v);
 
 
 
/*
run:
 
volume: 53.646948
 
*/

 



answered Mar 20, 2018 by avibootz
edited Oct 5, 2024 by avibootz

Related questions

1 answer 234 views
1 answer 257 views
1 answer 284 views
1 answer 510 views
1 answer 255 views
1 answer 262 views
262 views asked Mar 20, 2018 by avibootz
1 answer 249 views
...