let w = 5
w = w + 4
Can we have a link to the lesson you are having the problem with?
Hello! When I run the code on my computer, it works normally; can you send a screenshot of it with the error message, please?
it’s not a particular lesson i am just applying the code i was taught in the intro to java course lesson 2 to a concept i already know
Hello. I think I might have found the problem… For some reason node file.js is not being recognized as a command anymore… i have to do .load file.js . I don’t know if that’s officially the issue or if node should still be able to recognize “node file.js” but here is what it looks like on the terminal.
this is the actual script if it makes a difference.
Nothing seems amiss from the code; I’d imagine it’s just how you were compiling (eh, not the most accurate term, oh well). I’m not too familiar with running JS through the terminal.
yeah well at least .load works and is running the file through node … so as long as it works in some way i guess its ok. its just kind of odd. Perhaps node changed how some stuff works, i have a mac if that makes a difference.