valeur de javascript

s1 = new string('2+2');
console.log(eval(s2));                 // output = 2+2
console.log(eval(s2.valueof());        //output = 4
Ankur bijarnia