How do i link my HTML to JS?

Im a beginner so its my first time ever doing this.
2 Replies
Jochem
Jochem9mo ago
Like b1mind answered in #general, this is how you link javascript in HTML https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script
: The Script element - HTML: HyperText Markup Language | MDN
The HTML element is used to embed executable code or data; this is typically used to embed or refer to JavaScript code. The <script> element can also be used with other languages, such as WebGL's GLSL shader programming language and JSON.
Jochem
Jochem9mo ago
if you have trouble with that article, share the code and make sure to provide any errors you get