Solution to the VS Code CWD problem

I left a comment, with the solution concerning opening a terminal in the Current Working Directory [CWD]. I talked about here. I’m repeating the solution here.

I solved my own problem. I was sure it worked for me before, and this idea popped into my head. However I never saw this response/solution (which certainly could be a reason other people had this problem) as a possibility, to the many other people who asked the same question. It works if you open the containing folder…It doesn’t work if you directly open the file!!!!

Afterwards running the JavaScript program works for me, because I’m in the correct directory, using node in the terminal…node javascriptFile.js

So now to continue my JavaScript learning.