Skip to content

Instantly share code, notes, and snippets.

@Cst2989
Last active October 22, 2021 10:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Cst2989/e49af48cfe983638ac68f31260d5d1ef to your computer and use it in GitHub Desktop.
Save Cst2989/e49af48cfe983638ac68f31260d5d1ef to your computer and use it in GitHub Desktop.
finished version
export const bowlingScoreCard = (frames) => {
let scoreCard = '';
frames.forEach((frameRolls) => {
const frameResult = calculateFrame(frameRolls[0], frameRolls[1]);
scoreCard += frameResult;
});
return scoreCard;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment