-
Notifications
You must be signed in to change notification settings - Fork 0
/
code_test_space.js
42 lines (34 loc) · 934 Bytes
/
code_test_space.js
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
// TODO: This example is connected to the closer concept which is the video number - 49.
// function outerRegularFunction() {
// const variable = "value";
// function innerRegularFunction() {
// console.log(this.variable);
// }
// console.log(innerRegularFunction());
// }
// console.log(outerRegularFunction());
// const regularFunctionExpression = function () {
// console.log(arguments);
// };
// regularFunctionExpression("hey");
// const arrowFunction = () => {};
// const promise1 = new Promise(function (resolve, reject) {
// // Do async task
// // Database call, cryptography, network
// setTimeout(function () {
// console.log("Async task is complete");
// // resolve();
// }, 1000);
// });
// // promise1;
const object = {
key1: "value1",
key2: "value2",
key3: "value3",
nestedObject: {
key4: "value4",
key5: "value5",
key6: "value6",
},
};
console.table(object);