Home > front end >  Traversal problem
Traversal problem

Time:01-30

Good god, I have a question, hope to get help, the problem description is as follows:

1. On an array traversal
A=[{21, A: 1, b: c: 31},
22, {2, a: b: c: 32},
23, {3, a: b: c: 33}
]
Value of a) for (var
The console. The log (
Aa: value. A
Bb: the value b
Cc: the value c

Fn (value. A)
Dd: fs. Readfile (a. son,...).
)
2. The function b=fn (a) {
Fs. Wirtefile (a. son,...).
}
(3) requirements, in the process of the first step in the traversal, to call a function b, b needs to use the first cycle and function of a value (1) as a parameter to run b function; The final function of a. b son file, to join the first loop, as the value of the dd
The second cycle, in the process of the first step in the traversal, to call a function b, b and function need the second cycle of a value (2) as a parameter to run b function; The function of a. b son file, to join the second loop, as the value of the dd
So on

CodePudding user response:

Too difficult, I don't know how to deal with as well, please masters help have a look,
  • Related