+ 3
I need help!
I am trying to make a Web compiler, but the JavaScript isn’t working. Can you please tell me why? The JS bit is on line 128. https://code.sololearn.com/W1z07a40ViYp/?ref=app
6 ответов
+ 3
Hi Rowsej
If I put this into the JS editor
let a=10;
let b=20;
a+b;
I get 30 as the result.
Is this not what you expect?
+ 2
hmm alert works for me
+ 2
Me too
+ 2
Mike Choy and KrOW:
I was testing, and found that strings don’t work, though you can still alert numbers...
+ 1
it works for me, even with the typo at line 2. - what I type between the body tag is parsed below after click on run.
+ 1
Mike Choy:
If I type alert(“Hi!”); into the JavaScript editor, it comes up with a script error for me. The doing the JS bit is right at the bottom.