0
After you put var x=100 how do you acttually make it type it?
Help
2 Respuestas
0
document.write(x)
0
You can display your variable on the screen in four ways:
1 - document.write(x);
2 - alert(x); // gonna be in modal window
3 - create any attribute like <p> with a class name (or id number) and use document.getElementById('name').innerHTML = (x);
4. document.getElementByTagName('p').innerHTML = (x)