What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-10 08:55:12
what is eval in js
The eval() function evaluates JavaScript code represented as a string. console.log(eval('2 + 2')); // expected output: 4 console.log(eval(new String('2 + 2'))); // expected output: 2 + 2 console.log(eval('2 + 2') === eval('4')); // expected output: tru... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5