DS
Size: a a a
DS
АБ
DT
АБ
OR
АБ
И
DS
И
const getNextID = (() = > {
let count = 0
return () => count++
})()DS
const getNextID = (() = > {
let count = 0
return () => count++
})()function createSomething() {
let count = 0
return () => {
count += 1
...
}
}И
function createSomething() {
let count = 0
return () => {
count += 1
...
}
}DS
EM
DS
const getNextID = (() = > {
let count = 0
return () => count++
})()И
И
DS
ES
OR