Untitled
Anonymous
plain_text
03/07/2025 5:37 PM
428 B
17
Indexable
function sum() {
let b = 0;
return function (a) {
b = b + a;
return b;
};
}
const sumA = sum();
const sumB = sum();
// let memorySUMB;
// function sumB (a) {
// b = b + a;
// return b;
// };
//let memoryB;
// function sumA (a) {
// b = b + a;
// return b;
// };
Editor is loading...
Leave a Comment