+ 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

24th May 2018, 9:19 AM
Rowsej
Rowsej - avatar
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?
24th May 2018, 11:23 AM
Mike Choy
Mike Choy - avatar
+ 2
hmm alert works for me
24th May 2018, 10:30 PM
Mike Choy
Mike Choy - avatar
+ 2
Me too
25th May 2018, 12:17 AM
KrOW
KrOW - avatar
+ 2
Mike Choy and KrOW: I was testing, and found that strings don’t work, though you can still alert numbers...
25th May 2018, 5:52 AM
Rowsej
Rowsej - avatar
+ 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.
24th May 2018, 11:02 AM
wenz
wenz - avatar
+ 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.
24th May 2018, 9:32 PM
Rowsej
Rowsej - avatar