ruju11235 / csp

Small programs using the JavaScript syntax. I'm just starting to learn :)
0 stars 1 forks source link

Implement a power function #3

Closed kedarmhaswade closed 1 month ago

kedarmhaswade commented 2 months ago

Implement a function, power, that

For instance,


function power(b, e) 
{
// your code
}

power(2, 5); // returns 32
power(1.2, 2); // return 1.44

Write the function in both imperative/procedural and functional styles.

kedarmhaswade commented 1 month ago

Cool!