tic tac toe javascript reset button not working -
hi trying create reset function - have created loop on click take values in "input" class , return empty string.
what doing wrong?
function reset (){ (i=0 ; 1 < cell.length ; ++){ document.getelementsbyclassname("input").addeventlistener("click").value ="" }
getelementsbyclassname
returns array. need specify index. ie. classarray[i]. also, forgot semi colon @ end of line.
Comments
Post a Comment