JSFiddle - React, Tailwind, and code Playground
by zur4ik
JavaScript
let par = function(num) {
let child = function(childNum) {
num += childNum;
console.log(num);
}
return child;
}(0);
par(2);
par(3);
par(5);
by zur4ik
let par = function(num) {
let child = function(childNum) {
num += childNum;
console.log(num);
}
return child;
}(0);
par(2);
par(3);
par(5);