Content-Length: 285504 | pFad | http://github.com/lgope/JavaScript/commit/c726aaf969ae8e4c4a9846b7544b50bbf8084642
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc92a49 commit c726aafCopy full SHA for c726aaf
Interview-Questions/func.js
@@ -34,3 +34,24 @@ increment();
34
increment();
35
36
log();
37
+
38
+// Console sequence output?
39
+function run () {
40
+ const promise = new Promise((resolve) => {
41
+ resolve('promise');
42
+ })
43
44
+ setTimeout(() => {
45
+ console.log('setTimeout');
46
+ });
47
48
+ promise.then(res => console.log(res))
49
50
+ console.log('log');
51
+}
52
53
+run();
54
55
+// How does the Javascript interprets the following code?
56
+console.log(x);
57
+var x = 100;
Fetched URL: http://github.com/lgope/JavaScript/commit/c726aaf969ae8e4c4a9846b7544b50bbf8084642
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy
0 commit comments