Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
2
let
userScore = 0;
3
4
function
incrementScore(points) {
5
userScore += points;
6
console.log(`Score: ${userScore}`);
7
}
8
9
for
(
let
i = 0; i < 3; i++) {
10
incrementScore(10);
Callers
1
00_variables.js
File · 0.70
Calls
1
log
Method · 0.45
Tested by
no test coverage detected