Functions are the workhorses of JavaScript, performing most tasks that need to be done more than once. Functions are also “first-class citizens” of JavaScript; they’re also objects, and can be assigned to variables.
函数是JavaScript的主力军,可以执行大多数需要多次执行的任务。 函数也是JavaScript的“一等公民”。 它们也是对象 ,可以分配给变量 。
As with most of the entries in the overall JS reading list, there are a few advanced topics to cover here, including closures, but the existing material is a good start for novice and intermediate JavaScript coders.
与整个JS阅读列表中的大多数条目一样,这里涵盖了一些高级主题,包括闭包,但是现有的材料对于新手和中级JavaScript编码者来说是一个好的开始。
Time: 40 minutes
时间: 40分钟
Prerequisites: JavaScript Operands & Operators
先决条件: JavaScript操作数和运算符
翻译自: https://thenewcode.com/1146/Web-Developer-Reading-List-JavaScript-Functions