MCPcopy Create free account
hub / github.com/ShivaBhattacharjee/KeyZen / incrementScore

Function incrementScore

public/code/javascript/00_variables.js:4–7  ·  view source on GitHub ↗
(points)

Source from the content-addressed store, hash-verified

2let userScore = 0;
3
4function incrementScore(points) {
5 userScore += points;
6 console.log(`Score: ${userScore}`);
7}
8
9for (let i = 0; i < 3; i++) {
10 incrementScore(10);

Callers 1

00_variables.jsFile · 0.70

Calls 1

logMethod · 0.45

Tested by

no test coverage detected