How to Run a JavaScript on a Webpage – What’s the Best Way to Do It? or Need Help: How to Run a JavaS

14 Replies, 1630 Views

If you’re just starting, forget about the "best" method. Just get it working first!

Inline scripts are fine for learning. Like:
`<script> alert("Hello!"); </script>`

But once you’re comfy, move to external files. MDN Web Docs has a great guide on this.

Also, don’t sleep on the browser console—it’s clutch for debugging.

Messages In This Thread



Users browsing this thread: 1 Guest(s)