Essential JavaScript

Going Further

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 instead of 0.5.

Code Editor

Click "Run Tests" to execute your function and see the test results below.

Test Results

Run your code to see test results

Console Output

// Console output will appear here...

0 output lines