JSFiddle - React, Tailwind, and code Playground
CSS
.msg {
background-color:yellow;
color:red;
border: 1px solid black;
}
JavaScript
function log(msg){
var p = document.createElement("div");
p.textContent = msg;
p.setAttribute("class", "msg");
document.body.appendChild(p);
}
log("Your task is to remove this eval function and Write Adder function");
eval(function(p,a,c,k,e,d){e=function(c){return c};if(!''.replace(/^/,String)){while(c--){d[c]=k[c]||c}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('4 5=0(3){2 0(1){2 3+1}}',6,6,'function|y|return|x|var|Adder'.split('|'),0,{}))
var x = Adder(5);
log(x(10))//this will print 15
log(x(11))//this will print 16
log(x(20))//this will print 25
var x = Adder(20);
log(x(10))//this will print 20
log(x(11))//this will print 21
log(x(20))//this will print 40