Why is just my code showing on my page?

I created my repository and when I click the link for Lab 1 it shows the code on the screen. How do I get it to run the code?

Hi!

Do you have an index.html file in your root directory that references the js file? The js file won’t perform on its own and needs to be referenced from an html file. If you haven’t already i would suggest doing the following:

  1. Create a new “index.html” file in your root (main folder which also has the readme file)

  2. Paste this:

Remember to replace “path-to-file” with the path to app.js, here I believe it would be something like

“/labs/labs%201/app.js”

I hope this helps! Apologies if I’ve made any incorrect assumptions or mistakes.