Why <script> isn't written in the code playground? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Why <script> isn't written in the code playground?

https://www.sololearn.com/learn/JavaScript/1124/

11th Dec 2019, 9:27 PM
Karkoran
Karkoran - avatar
3 Answers
+ 3
Because it's a Js file so no need to write <script> tag
11th Dec 2019, 9:37 PM
A͢J
A͢J - avatar
+ 3
When writting JS codes directly into the html document, we use the <script>...</script> tag, but when we have the js code in a different document, we dont use the tag, we use the <link> tag
12th Dec 2019, 4:34 PM
Alfred Juma
Alfred Juma - avatar
0
<!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> </body> </html> ... I'm sorry, but I don't see any <link> tag neither in Code playground - section html. Why is it so?
12th Dec 2019, 4:48 PM
Karkoran
Karkoran - avatar