Js code doesn't run on console tab google chrome


I get a blank instead of hello world

Hi there,
please post your HTML and JS code. You either haven’t linked that script correctly, or something inside your script is wrong.

Hi, this is what i’ve got exaclty as in the website they say Getting Started With JavaScript this is how i have it:


and the js file i have this:

console.log('hello world');
``` and i saved it as main.js

The attribute is src, not scr

1 Like

Yes now it’s working, thanks a lot!!!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.