In this program, we will make a function cubes(number) which will take number as parameter and will return cube of that number.
cubes(3) ➞ 27
cubes(5) ➞ 125
cubes(10) ➞ 1000<script>
function cubes(number){
return number ** 3; //** means power
}
</script>