B站视频:https://www.bilibili.com/video/av54970169
GitHub Files: https://github.com/Li-YangZhong/The-Modern-JavaScript-Bootcamp-by-Andrew-Mead.git
node -v //show version of node
clear //clear screen
pwd //print working directory
cd Desktop //change directory to Desktop
cd .. // go to the parent directory
ls // list content of the current directory
node .\hello-world.js //run the file called "hello-world.js"
semicolons in JavaScript are optional
npm -v //check version of npm installed
npm install -g live-server //installing live-server
在Visual Studio Code 中选中一段字符后在键盘输入单引号后会在选中的这段字符的两端各加一个单引号
Node.js与JavaScript基础

本文介绍了如何使用Node.js运行JavaScript代码,包括环境设置、基本命令如显示Node版本、清理屏幕、目录操作等,并演示了如何运行hello-world.js文件。此外,还提到了JavaScript中分号的可选性,以及如何在Visual Studio Code中使用快捷方式为选中文字添加单引号。
3205

被折叠的 条评论
为什么被折叠?



