+ 2

[object Object] error occurring when running code.

I don't understand why this error is happening, and I would like some help with it. I've tried removing bits of the code to understand why this is happening, but it hasn't worked. https://code.sololearn.com/WtBveMm3QqDV/#html

24th Sep 2020, 7:45 PM
Gabriel
Gabriel - avatar
11 Réponses
+ 2
Gabriel I have no idea... Type it in notepad, save it as a .html and open it with chrome if you want to check the output I guess. https://www.sololearn.com/post/610586/?ref=app
24th Sep 2020, 9:07 PM
Odyel
Odyel - avatar
+ 4
Hi Gabriel What were you trying to do? From what I have seen, the code is working fine! If there is any specific issue you have, try pointing it out and we'll be happy to help!
24th Sep 2020, 7:51 PM
Vachila64☕
Vachila64☕ - avatar
+ 1
Whenever I run the code, all I get in the output box is "[object Object]." Could it be an issue with my browser? I checked it on my phone, and it worked fine.
24th Sep 2020, 7:54 PM
Gabriel
Gabriel - avatar
+ 1
It just fine now..Gabriel Where you getting that output? Check again No chances of that also because you don't have js code.!
24th Sep 2020, 8:25 PM
Jayakrishna 🇮🇳
+ 1
Gabriel not sure what to say, works in both Code Playground and in my browser. What browser are you using? https://www.sololearn.com/post/610570/?ref=app
24th Sep 2020, 8:57 PM
Odyel
Odyel - avatar
+ 1
Gabriel I'm using brave which is using the same rendering engine as chrome so I don't see why it doesn't work. Lemme download chrome and see if it's chrome
24th Sep 2020, 9:01 PM
Odyel
Odyel - avatar
+ 1
I really appreciate the help. Thank you for the alternative. I'll continue investigating I guess.
24th Sep 2020, 9:11 PM
Gabriel
Gabriel - avatar
0
I'm using Google Chrome as a browser and DuckDuckGo as a search engine on my computer.
24th Sep 2020, 8:58 PM
Gabriel
Gabriel - avatar
0
Alright, thank you.
24th Sep 2020, 9:02 PM
Gabriel
Gabriel - avatar
0
That is the output of js code, may be you removed as you said it.. Now you don't hava any javascript code.. Add deleted code if you need more about it.. That may help..
24th Sep 2020, 9:36 PM
Jayakrishna 🇮🇳