blob: a1e4c49431a81856e54ee92e12ef54ecf23eefc6 (
plain)
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
|
function checkValues() {
const a = "";
const b = false;
const c = undefined;
const d = null;
const e = [];
const f = {};
const obj = {
foo: 1,
};
let bs = [];
for (let i = 0; i <= 100; i++) {
bs.push({ a: 2, b: { c: 3 } });
}
debugger;
}
function columnWise() {
let a = "a";
let b = "b";
let c = "c";
console.log(c, a, b);
debugger;
}
function objectProperties() {
const obj = { hello: "world", a: { b: "c" } };
console.log(obj.hello);
console.log(obj.a.b);
debugger;
}
function classProperties() {
class Foo {
x = 1;
#privateVar = 2;
#privateMethod() {
return this.#privateVar;
}
breakFn() {
let i = this.x * this.#privateVar;
const self = this;
debugger;
}
}
const foo = new Foo();
foo.breakFn();
}
function btnClick() {
const btn = document.querySelector("button");
debugger;
btn.click();
}
function onBtnClick(event) {
debugger;
}
|