Untitled
unknown
plain_text
9 months ago
319 B
8
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