Help! | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
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?

17th Feb 2019, 11:23 PM
Wyatt Allison
Wyatt Allison - avatar
5 Respuestas
+ 2
Please show us your code so that we can help you.
18th Feb 2019, 12:14 AM
JTLZ
+ 2
Isn’t Javascript? JS is in web developement
18th Feb 2019, 12:21 AM
JTLZ
+ 1
Well it’s working fine for me https://code.sololearn.com/WYAs47NZ5e08/?ref=app
18th Feb 2019, 12:19 AM
JTLZ
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>"); }
18th Feb 2019, 12:17 AM
Wyatt Allison
Wyatt Allison - avatar
0
is it incorrect for me to choose java? should i choose web instead?
18th Feb 2019, 12:20 AM
Wyatt Allison
Wyatt Allison - avatar