NodeJS 函数与作用域
摘要:# 三、函数与作用域 [TOC] ## 3.1 函数 ```JS function 函数名(函数参数) { 函数体; return 返回值; } ``` ```JS function add(x,y){ return x+y } ret = add(4,5) console.log(ret) ```
阅读全文
posted @ 2023-07-20 15:20
posted @ 2023-07-20 15:20
posted @ 2023-07-20 15:14
posted @ 2023-07-20 15:12
posted @ 2023-07-20 13:56