'VS Code Terminal not running

when I go for console.log("hello world") my vs code terminal is not working unless I switch to java script debug terminal? any one who know the solution please help



Solution 1:[1]

Try this ===> 1 Type node in terminal 2 console.log("Hello World")

enter image description here

Solution 2:[2]

Its pretty simple, just 2 clicks away
=> 1. Click on File
=> 2. Click on Auto Save

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Sumit Pathak
Solution 2 S.B