Files
thejinchao.github.io/docs/note/language/javascript/helloworld.md
T
2025-02-22 22:42:02 +08:00

296 B

环境搭建

使用nodejs直接运行

  1. 下载安装nodejs
  2. 创建一个js文件helloworld.js
var name="Alice";
console.log("Hello, " + name);
  1. 在命令行中输入如下命令
node helloworld.js