2
I’m learning to code in Javascript (Cod3r’s WEB Development Course by Udemy) and I’m having a lot of problems with Visual Studio Code, which I’ve been postponing for not being able to solve. The following problems are:
- Unable to execute code in "output";
- Unable to stop running code using Ctrl+Alt+M or Ctrl+Alt+N.
1 - This problem occurs when I run any and all code in Vscode, the course where I use the base, shows that the instructor runs his code and appears in "output", however in my always appeared in "Debug Console" when I press F5, which should be the right button. I never moved anything to fix, if yes, I failed and undone. However, one gambit I got was (look at the level) to lower the extension Node.js Exec https://marketplace.visualstudio.com/items?itemName=miramac.vscode-exec-node still running using F8 but it’s not what I want, because it doesn’t feel right. How to fix?
2 -
This second problem occurs when I went to learn the commands of bind
in Javascript, the following example was:
//Agora criando de uma outra forma usando diferentemente do ".bind(this)"
function Pessoa(){
this.idade = 0
const self = this //colocando uma variavel para this
setInterval(function(){
//usando:
self.idade++
//no lugar de:
// this.idade++
console.log(this.idade)
}.bind(this) , 1000)
}
new Pessoa
(Please don’t mind the comments)
The instructor of the course that with Ctrl+Alt+M stopped running the code, but it does not happen even the Ctrl+Alt+N that is to continue. How to proceed?
Excuse me, Ian, isn’t Udemy’s instructor answering your questions? I’m doing Xamarin 2020 at Udemy and my instructor sometimes takes a while, but always answers the questions.
– FabioIn
I thought that being a problem in Vscode I could solve here faster, I asked there to see what will happen. Thanks bro <3
– Ian de Oliveira