-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinitialSampleCode.ts
More file actions
71 lines (51 loc) · 1.04 KB
/
Copy pathinitialSampleCode.ts
File metadata and controls
71 lines (51 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
export const sampleCode1 = `console.log("Hello, World!");
async function asyncFunc() {
await console.log("Async function");
console.log("after await 0")
}
setTimeout(() => {
console.log("Timeout function");
}, 0);
asyncFunc();
console.log("End of script");`;
export const stackOverFlow = `function one() {
two()
};
function two() {
one();
};
one();`;
export const setTimeoutCodeSnippet = `setTimeout(() => {
console.log("Timeout function");
}, 0);
console.log("End of script");`;
export const stackOverFlowsampleCode2 = `function one() {
two()
}
function two() {
one()
}
one();
two();
`;
export const asyncSample = `async function asyncFunc() {
await console.log("Async function");
console.log("after await 0")
console.log("after await 1")
}
asyncFunc()
console.log('end')
`;
export const setTimeout = `setTimeout(() => {
console.log("Timeout function");
}, 0);
`;
export const start = `setTimeout(() => {
console.log("inside setTimeout");
}, 0);
async function one() {
await console.log("one");
one();
}
one();
`;