0
Help!
I’m just starting out on JavaScript, and it’s really fun!! But when I execute a script code on the lessons, it goes through. But then I try on the home screen playground and it says all these errors, which I don’t understand. Is this supposed to happen?
5 ответов
+ 2
Please show us your code so that we can help you.
+ 2
Isn’t Javascript? JS is in web developement
+ 1
Well it’s working fine for me
https://code.sololearn.com/WYAs47NZ5e08/?ref=app
0
var course = 1;
if (course == 1) {
document.write("<h1>HTML Tutorial</h1>");
} else if (course == 2) {
document.write("<h1>CSS Tutorial</h1>");
} else {
document.write("<h1>JavaScript Tutorial</h1>");
}
0
is it incorrect for me to choose java? should i choose web instead?