L
while(await 1);
повесит всеSize: a a a
L
while(await 1);
повесит всеKP
KP
plain
Promise 1
Promise 2
setTimeout 1
setTimeout 3
setTimeout 2
L
В-
KP
KP
L
В-
KP
L
const foo = (s, a = [...s], b = [...a]) =>
a.every(c => c === b.pop())
KP
L
const foo = (s, a = [...s], b = [...a]) =>
a.every(c => c === b.pop())
KP
for (let i = 0; i < str.length / 2; ++i) {
KP
KP
as
str === str.split('').reverse().join('')