ДК
Size: a a a
ДК
S
function one(func) {
func();
}
function two() {
console.log("1");
}
one(two);
M
AP
const caller = (callback) => {
callback();
}
caller(() => console.log('hey'))
M
DM
S
M
S
S
DM
DM
DM
DM
1
ДК
i
const a = 'first\nsecond\third\nforth'
const b = 'replace'
'first\nsecond\third\nreplace'
Е
ДК
i
aвсе до последнего \n на
b