Im doing practice work in creating a javascript and testing it out. like creating a box and adding javascript to change the color, size, fade, etc. im instructed to create 2 files in VS code. one named index.html and one named javascript.js. i have to copy and save a code in the html file. then it asks me to write my javascript in the javascript.js file. but it in VScode its not allowing my to open the javascript.js file. im wondering what the issue is or am i writing it in the wrong file? here are a screen shot of what im asked to do and what im getting
Checkout your second screenshot, you have put the html content in a js file mistakenly!,
instead try this:
index.html file and put the html content inside itjavascript.js file and put the JavaScript content inside it.Then open your index.html file in a browser.