We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b4bc08 commit 1242e9aCopy full SHA for 1242e9a
1 file changed
basic/eval.js
@@ -1,4 +1,5 @@
1
-console.log(eval('2 + 2'));
+function eval_examples() {
2
+ console.log(eval('2 + 2'));
3
// Expected output: 4
4
5
console.log(eval(new String('2 + 2')));
@@ -9,3 +10,6 @@ console.log(eval('2 + 2') === eval('4'));
9
10
11
console.log(eval('2 + 2') === eval(new String('2 + 2')));
12
// Expected output: false
13
+}
14
+
15
+eval_examples();
0 commit comments