Essential JavaScript

Cake Slices Kata

You are at a fantasic party. There is cake!

The cake is sliced into slicesCut pieces. You eat slicesEaten pieces.

What percentage of the cake did you eat?

If you ate half of the cake, be sure to return 50 insted of 0.5.

Code Editor