Skip to content

Instantly share code, notes, and snippets.

@kristobalus
kristobalus / bowling.js
Created June 17, 2024 13:14
bowling game score counter
/**
* @param {string} game
*/
function getScore(game) {
const records = game.split(" ")
const frames = []
// initial parsing
for(let i = 0; i < records.length - 1; i++) {