Create script.js in the same folder:
"use strict"
console.log("Script loaded!")
let message = "Hello from JavaScript"
console.log(message)
Open index.html with Live Server. Check the browser console. You should see both messages. If you see errors, read them carefully. Check file names and paths. Make sure both files are in the same folder.