File tree Expand file tree Collapse file tree 1 file changed +79
-0
lines changed Expand file tree Collapse file tree 1 file changed +79
-0
lines changed Original file line number Diff line number Diff line change
1
+ <div align =" center " >
2
+ <h1 >Functions</h1 >
3
+ </div >
4
+
5
+ <ol >
6
+ <li >
7
+
8
+ ** What will be the Output??**
9
+
10
+ ``` JS
11
+ function setName () {
12
+ this .name = ' devkode' ;
13
+ }
14
+
15
+ setName ();
16
+ console .log (this .name );
17
+ ```
18
+
19
+ - A: ` ‘devkode’ `
20
+ - B: ` undefined `
21
+ - C: ` An Error will be thrown `
22
+ - D: ` null `
23
+
24
+ <br />
25
+
26
+ <details >
27
+ <summary ><b >Answer</b ></summary >
28
+ <p >
29
+
30
+ #### Option: A
31
+
32
+ </p >
33
+ </details >
34
+
35
+ </li >
36
+
37
+ ---
38
+
39
+ <li >
40
+
41
+ ** What will be the output ?**
42
+
43
+ ``` JS
44
+ function fun (num1 ) {
45
+ var num2 = 6 ;
46
+
47
+ function TDK () {
48
+ var num3 = 10 ;
49
+ console .log (num1 * num2 * num3)
50
+ }
51
+
52
+ return TDK ;
53
+ }
54
+
55
+ var TeamDevKode = fun (5 )
56
+ TeamDevKode ()
57
+ ```
58
+
59
+ - A: ` undefined `
60
+ - B: ` 0 `
61
+ - C: ` 300 `
62
+ - D: ` infinity `
63
+
64
+ <br />
65
+
66
+ <details >
67
+ <summary ><b >Answer</b ></summary >
68
+ <p >
69
+
70
+ #### Option: C
71
+
72
+ </p >
73
+ </details >
74
+
75
+ </li >
76
+
77
+ ---
78
+
79
+ </ol >
You can’t perform that action at this time.
0 commit comments