MCPcopy Create free account
hub / github.com/Techtonica/curriculum / toggleValue

Function toggleValue

pair-programming/week-3/toggle-button/script.js:4–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2console.log("Default value of your boolean is " + testBoolean);
3
4function toggleValue() {
5 if (testBoolean) {
6 testBoolean = false;
7
8 console.log("The value of your boolean is " + testBoolean);
9 } else {
10 testBoolean = true;
11
12 console.log("The value of your boolean is " + testBoolean);
13 }
14}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected