+ 3

[SOLVED] Why sololearn Node executor dont works with setTimeout/setInterval?

When i run code as nodejs and in source has a setInterval, nothing is executed Try https://code.sololearn.com/WO5Mp9JRoQ15/?ref=app

7th Nov 2020, 1:37 AM
David Ordás
David Ordás - avatar
5 Réponses
+ 4
Because the node server is works as online. And Sololearn language consoles that doesn't provide real time outputs, Except webview, because WebView is an offline section provided by android.
7th Nov 2020, 5:16 AM
Kelvin Paul
Kelvin Paul - avatar
+ 6
It works, and output is shown, but you can't see the delay. console.warn works too: https://code.sololearn.com/c20Y6nF7PY32/?ref=app
7th Nov 2020, 9:20 AM
Kevin ★
+ 2
SL node support warn, error, table, etc. But in the case of "error", it doesn't act like an error message in SL node.
7th Nov 2020, 9:23 AM
Kelvin Paul
Kelvin Paul - avatar
+ 2
7th Nov 2020, 2:07 PM
David Ordás
David Ordás - avatar
+ 1
Kelvin Paul then I suppouse it's the same reason why "console.warn" doesn't output nothing?
7th Nov 2020, 7:14 AM
David Ordás
David Ordás - avatar