Ask coding questions

← Back to all posts
JavaScript Problem
ia13ru (43)

I have posted something on a problem I had.
It was simply said as a case of a repl.it bug.
I tried it in another compiler and I had the same problem.
The post
What am I doing wrong?
I am also using google chrome.

Comments
hotnewtop
Coder100 (16872)

What do you mean another compiler?

Btw, instead of using console.log, you can also use alert:

let obj = {"a": "b"};
alert(JSON.stringify(obj, null, 2));
ia13ru (43)

@Coder100
1. What I mean by using another compiler is using Notepad instead of Repl.it.
2.It still has the problem of only alerting the first thing in the object.

xxpertHacker (865)

@ia13ru There aren't just mainstream JavaScript compilers... Repl doesn't compile it, Repl merely delegates execution to other programs.

Most, if not all JavaScript implementations are interpreters.

Coder100 (16872)

@ia13ru what do you mean it only alerts the first object? Of course it does alert only takes one object.

Coder100 (16872)

and notepad is not a complier what @ia13ru