0

I just simply tried to take input using javascript as I started javascript basics, why it's not running?

https://code.sololearn.com/WYtHxTSsZ36R/?ref=app

16th Jul 2023, 12:35 PM
chetan kumar
chetan kumar - avatar
2 odpowiedzi
+ 5
let x = readLine(); works only in CodeCoach Sololearns compiler which is so created to do this. JavaScript does not have this statement. Instead you can use prompt() as above mentioned or input tag from HTML.
16th Jul 2023, 2:07 PM
JaScript
JaScript - avatar