0 of 10 problems solved • 0%
Use in a course

Exercise prompt

Divide Evenly

The division operator / splits one number into equal parts. Dividing a total by the number of people gives each person's share.

Example

const cards = 20; const players = 4; const cardsEach = cards / players;

Each player receives 5. Your exercise shares pizza slices.

Your task

With 24 slices shared among 6 friends, calculate slicesPerFriend from the supplied variables. The console should display Each: 4.