Home>Article>Development Tools> How to write js code in vscode

First click New File under File

Then a temporary file will be created, as shown in the figure below

Select the file type as js, as shown in the picture below

You can also click on the plain text at the bottom, as shown in the picture below

Select the language mode as javascript in the pop-up interface

Then you can write Js code in the file As shown below

Recommended tutorial:vscode tutorial
The above is the detailed content of How to write js code in vscode. For more information, please follow other related articles on the PHP Chinese website!