Are you embedding your script file in your HTML document? If not then you have to embed it in your HTML document so that you can preview it in the browser. To run your code do Alt + R if you’re using Windows in Atom. Alternatively, you can install it from the command palette by Pressing Ctrl + Shift + P.
Solution 1 :
Comment posted by dropbox.com/s/gvzmxv3g2b7073q/…
Thank you for your prompt reply Shaeel, I believed I have embedded it as a html document. Here is a preview of my code