Content-Length: 285504 | pFad | http://github.com/lgope/JavaScript/commit/c726aaf969ae8e4c4a9846b7544b50bbf8084642

C8 Update func.js · lgope/JavaScript@c726aaf · GitHub
Skip to content

Commit c726aaf

Browse files
authored
Update func.js
1 parent cc92a49 commit c726aaf

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

Interview-Questions/func.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,24 @@ increment();
3434
increment();
3535

3636
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;

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/lgope/JavaScript/commit/c726aaf969ae8e4c4a9846b7544b50bbf8084642

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy