0

After you put var x=100 how do you acttually make it type it?

Help

15th Oct 2016, 7:26 PM
nadia
2 Respuestas
0
document.write(x)
16th Oct 2016, 9:44 AM
Beka Pipia
Beka Pipia - avatar
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)
16th Oct 2016, 10:57 PM
oguraslavik