![How to create js file in vscode](https://img.php.cn/upload/article/000/000/020/5dca2484900a1386.jpg)
How does vscode create js?
First click on the new file under the file
Recommendation: "vscode tutorial"
![1573528599665018.png How to create js file in vscode](https://img.php.cn/upload/image/510/895/445/1573528599665018.png)
##Then a temporary file will be created, as shown in the figure below
![1573528604656336.png How to create js file in vscode](https://img.php.cn/upload/image/611/539/449/1573528604656336.png)
Select the file type as js, as shown in the figure below
![1573528609952188.png How to create js file in vscode](https://img.php.cn/upload/image/897/927/552/1573528609952188.png)
You can also click on the plain text at the bottom, as shown in the picture below
![1573528613348898.png How to create js file in vscode](https://img.php.cn/upload/image/766/372/169/1573528613348898.png)
Select the language mode as javascript in the pop-up interface
![1573528617374329.png How to create js file in vscode](https://img.php.cn/upload/image/253/737/682/1573528617374329.png)
Then write some Js statements in the file, as shown in the picture below
![1573528622457969.png How to create js file in vscode](https://img.php.cn/upload/image/336/230/687/1573528622457969.png)
Click the triangle button in the upper right corner, as shown in the picture below
![1573528634547664.png How to create js file in vscode](https://img.php.cn/upload/image/239/911/244/1573528634547664.png)
Then you can see the js output at the bottom, as shown below
![1573528631938996.png How to create js file in vscode](https://img.php.cn/upload/image/414/424/158/1573528631938996.png)
The above is the detailed content of How to create js file in vscode. For more information, please follow other related articles on the PHP Chinese website!
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn