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.
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.
