0
why not my code work
1 Answer
+ 1
script tag is used to add script code, Not html code. Remove script tag from your html code.
Add your js in script tag in html page or in js tab : right in between
window.onload =() =>{
// add here js code
}
No need to add # for selecting id by document.getElementById(board).