In server-side JavaScript, you will most likely use the fs library for dealing with the filesystem. This library is a module in Node and other platforms like Bun. So you don’t need to install it using ...
var是ES5时代唯一的变量声明方式,核心特征都因“函数作用域”而生:在整个函数内可见、声明被提升且初值undefined、允许重复声明;而let/const从ES6引入块级作用域,用“暂时性死区”和禁止重复声明堵住了var的历史坑洞。