I need a random integer in a table in HTML, and have the correct code but it doesn't work for some reason! Here is my code so far:
document.getElementById(Example).innerHTML = Math.floor(Math.random() * 13) + 1;
My error message: https://i.sstatic.net/OhR8X.jpg My code: https://i.sstatic.net/ji2lL.jpg
'Example'or"Example", not justExample.getElementById()find the element? Any errors in your browser's dev console? (When you press F12 and head to "Console")