+ 3
Console & eval
Hi everyone, please why is the answer of this 24? var a= "1"; var b= "2*2"; console.log(eval(a+b));
3 Answers
+ 3
Thanks a lot guys for breaking it down. I really appreciate it and i understand it now.đ€
+ 1
a+b = 1(2*2) = 12*2 = 24