Hello there,
I am new in coding world. I am trying to run this following code
but it is not working in my browser. I use opera browser and sublime as my text editor.
I tried it in Mozilla Firefox but it is not working. Any other suggestion you can help me with?
Can you please send me the screenshot of your code and the screenshot of your browser? browser o
it depends on how you are using the editor. are you running the code?
for example I usually use repl.it, which is different, here you don’t have the code output automatically updating like in freecodecamp, but you have to press “Run” for the code to run
Yes I am doing it but result stills same. But right now I just figured out in Mozilla Firefox that if I go to web developer option and then click the console option and write the code in the console box the result is showing like I wanted. But I want this code to run through my text editor which will show result in my browser.
I created an HTML file and then link my .js file. But right now I just figured out in Mozilla Firefox that if I go to web developer option and then click the console option and write the code in the console box the result is showing like I wanted. But I want this code to run through my text editor which will show result in my browser.
I have copied your code as is to my editor as index.html and day_7.js and it seems to be working fine. Does your developer console not show any output at all when you refresh? Have you made sure your JS file is named correctly?