What to do:
- Install a code editor like Visual Studio Code or Sublime Text.
-
Create your first HTML file to run JavaScript:
html
<!DOCTYPE html> <html> <head> <title>My First JavaScript</title> </head> <body> <h1>Hello JavaScript!</h1> <script html="script.js"></script> </body> </html>
-
Create a separate JavaScript file:
javascript
// script.js console.log("Hello, World!");