How to calculate the volume of cuboid in JavaScript

1 Answer

0 votes
const length = 6;
const width = 4;
const height = 5;
         
const volume = height * width * length;
         
console.log("Volume of Cuboid = " + volume);
  
  
  
   
/*
run:
   
"Volume of Cuboid = 120"
   
*/

 



answered Sep 10, 2021 by avibootz

Related questions

1 answer 151 views
1 answer 129 views
1 answer 128 views
1 answer 155 views
1 answer 119 views
119 views asked Sep 10, 2021 by avibootz
1 answer 282 views
1 answer 146 views
...