freeCodeCamp JS Functional Programming10-13

preview_player
Показать описание
PART1
terminology 术语
Callbacks回调函数
criteria [N-COUNT]A criterion is a factor on which you judge or decide something. (判断的) 标准

The functions that take a function as an argument, or retur
n a function as a return value, are called higher order functions.
del是清除指示器后边的文字的
imperative 至关重要的 【’e】
tense紧张的or时态
indices (index)的复数形式
contrast (巨大的) 差别

[PHRASE]You say by contrast or in contrast, or in contrast to something, to show that you are mentioning a very different situation from the one you have just mentioned. 相比之下
[PHRASE]If one thing is in contrast to another, it is very different from it. 与…截然不同
semantic 语义的
merge使合并; 合并
shallow浅的
deterministic adj.确定性的;命运注定论的

using splice(). This creates side effects(changes to the original array) and should be avoided in practice.

const months = ['Jan', 'March', 'April', 'June'];
// inserts at index 1
// expected output: Array ["Jan", "Feb", "March", "April", "June"]

// replaces 1 element at index 4

// expected output: Array ["Jan", "Feb", "March", "April", "May"]

bg Array ["Jan", "Feb", "March", "April", "June"] bg Array ["Jan", "Feb"]

-4 bg Array ["Jan"]
-1bg Array ["Jan", "Feb", "March", "April"]

parse /pɑːz/ 做语法分析

The map() method creates a new array populated with the results of calling a provided function on every element in the calling array.

Рекомендации по теме
visit shbcf.ru