+ 1

Why it is not working in solo learn text editor?

<!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <script type="text/javascript"> var x = 1; document.write("x"); </script> </body> </html>

3rd Apr 2017, 8:15 AM
Aakash Basnet
Aakash Basnet - avatar
4 ответов
+ 3
Hi there! Are you trying to out value of X? Use document.write(x); instead document.write("x"); Have a nice day
3rd Apr 2017, 8:45 AM
Dennis Britoussov
0
Okay I'll try
3rd Apr 2017, 9:28 AM
Aakash Basnet
Aakash Basnet - avatar
0
Thanks! Now it is working!
3rd Apr 2017, 9:29 AM
Aakash Basnet
Aakash Basnet - avatar
0
3rd Apr 2017, 9:29 AM
Aakash Basnet
Aakash Basnet - avatar