how do I get the output of the function executed in the while loop before moving on to the next loop?
specifically, in the following example, how do you get f (list) to output the result before executing jPP, and then moving on to the next loop?
the problem is as above, and the code is as follows:
const f = () => {
...
}
let arr = ["abc", "def"]
let j=0;
while (j<arr.length) {
const list = arr[j];
f(list);
jPP;
}