MCPcopy Create free account
hub / github.com/codemistic/Web-Development / myfunc_3

Function myfunc_3

Tic Tac Toe/tic.js:260–271  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

258// and put accordingly value X or 0
259flag = 1;
260function myfunc_3() {
261 if (flag == 1) {
262 document.getElementById("b1").value = "X";
263 document.getElementById("b1").disabled = true;
264 flag = 0;
265 }
266 else {
267 document.getElementById("b1").value = "0";
268 document.getElementById("b1").disabled = true;
269 flag = 1;
270 }
271}
272
273function myfunc_4() {
274 if (flag == 1) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected