- 1

Why we use var, var is harder than document.write anyone can tell me?

Var harder than document.write

23rd Jun 2022, 12:26 PM
Starboyzzz Tv
Starboyzzz Tv - avatar
7 Respostas
0
hmm lets see..okay got one. when we should use var: var txt = prompt(); document.write(txt.eval()); what happens if we dont: i cant even right this line of code cuz no matter what it wont work so thats why var is important
23rd Jun 2022, 2:36 PM
Junior
Junior - avatar
+ 2
Var is short for variable. You store values in it. The document. write() method writes a string of text to a document. Your question does not make much sense.
23rd Jun 2022, 2:11 PM
Chris Coder
Chris Coder - avatar
- 1
Wrong?
23rd Jun 2022, 1:08 PM
Starboyzzz Tv
Starboyzzz Tv - avatar