I have downloaded visual studio code and Node to start JS on my mac. However, when I open this in chrome, my js doesn’t show in the inspect “console” section…I can’t figure out why as my chrome is up to date.
What’s currently there is what I’d expect to see (I’m on the console table and I can see the console), but you’re expecting something different - what are you expecting to see here?
I just deleted the js-basics folder that the html and js files were located in so the url won’t work now as I’m going to start all over again a bit later on.
at 11:37 he says that in the inspect console you should see “Hello World” message but when I try to recreate this, my console just shows “>” and a blank page. I was just wondering where I was going wrong?
Ah, I see. When you do start again, and if it isn’t working, can you paste that HTML here? Basically, what you’re seeing, the >, that’s just the console prompt, ie where you can type commands in, and as you’ve said, there should be a console.log statement printed out just before that, I think there’ll be a simple-to-fix error somewhere in the HTML
this is the js that’s in the index.js thats in the same file- theres a lot of gibberish in there as I’m noting down the principles:
console.log('Hello World');
let name ='MOSH'; //string literal
console.log(name);
let interestRate = 0.3;
interestRate = 1;
console.log(interestRate);
let age = 30; //Number literal
let isApproved = true; //Boolean Literal
let firstName;
let lastName =null;