1. Stale closure & primitive capture
What is the output of the following code?
function createIncrement() {
let count = 0;
const message = `Count is ${count}`;
function increment() {
count++;
}
function log() {
console.log(message);
}
return { increment, log };
}
const { increment, log } =...
🛡️ VERIFIED CYBER INTELLIGENCE ID: #3531401