HTML code in playground has [object object] as output | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

HTML code in playground has [object object] as output

Hey guys! i've started the HTML tutorial and everything was going great until i tried out the code playground. (I am using google chrome on my laptop) When i try to run the code (generated by the course) It shows on screen for a second but afterwards it goes to only showing [object Object] on screen. Does anyone know a solution to this? thanks alot in advance!

18th Nov 2019, 11:27 AM
Mateusz Mierzejek
Mateusz Mierzejek - avatar
7 Answers
0
You can show html code?
18th Nov 2019, 11:43 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
0
Its the basic code thats being used in lesson 3 "creating your own blog" All i did was press on the "try it out for yourself" button and then on "run".
18th Nov 2019, 11:45 AM
Mateusz Mierzejek
Mateusz Mierzejek - avatar
18th Nov 2019, 11:47 AM
Mateusz Mierzejek
Mateusz Mierzejek - avatar
0
Share your code instead...
18th Nov 2019, 12:20 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
0
sorry guys, kinda new to this stuff :p something like this for instance. if i run it on my pc its okay. but it doesnt work on the code playground <html> <head> <title> First webpage </title> <p> This line should not be visible </p> </head> <body> <p> This is a line of text </p> </body> </html>
18th Nov 2019, 12:34 PM
Mateusz Mierzejek
Mateusz Mierzejek - avatar
0
Hi there. I got the same [object] output. This may be caused by the browser. I'm using Avast and will change for Chrome and will see..
22nd Feb 2020, 11:10 PM
Driss RAIS
Driss RAIS - avatar
0
So after changing my browser to Chrome it works fine, now I can see the output
23rd Feb 2020, 1:20 AM
Driss RAIS
Driss RAIS - avatar