Skip to content

Commit 357fa67

Browse files
committed
funmcq
1 parent d831adc commit 357fa67

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Functions & Methods/mcq.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
let abc = 100;
2+
3+
if (function xyz() {}) {
4+
abc = abc + typeof xyz;
5+
}
6+
7+
console.log(abc);//100undefine
8+
9+
10+
let a = 100;
11+
12+
if (function x() {}) {
13+
a = a - typeof x;
14+
}
15+
16+
console.log(a);//NAN
17+

0 commit comments

Comments
 (0)