Skip to content

Commit 1031a26

Browse files
committed
feat: update deck to the latest version
1 parent 144f2d8 commit 1031a26

File tree

147 files changed

+284
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

147 files changed

+284
-1
lines changed
Binary file not shown.

anki/SJIQ - Javascript interview questions - sudheer jonna/Part I - Introduction/Chapter 1 - Interview Questions/1 - What are the possible ways to create objec.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ There are many ways to create objects in javascript as mentioned below:
6363
value: 'Golf',
6464
},
6565
};
66+
6667
var car = Object.create(vehicle, carProps);
6768
console.log(car);
6869
```
@@ -93,6 +94,7 @@ There are many ways to create objects in javascript as mentioned below:
9394

9495
```javascript
9596
function func() {}
97+
9698
new func(x, y, z);
9799
```
98100

@@ -101,8 +103,10 @@ There are many ways to create objects in javascript as mentioned below:
101103
```javascript
102104
// Create a new instance using function prototype.
103105
var newInstance = Object.create(func.prototype)
106+
104107
// Call the function
105108
var result = func.call(newInstance, x, y, z),
109+
106110
// If the result is a non-null object then use it otherwise just use the new instance.
107111
console.log(result && typeof result === 'object' ? result : newInstance);
108112
```
@@ -129,6 +133,7 @@ There are many ways to create objects in javascript as mentioned below:
129133
this.name = name;
130134
}
131135
}
136+
132137
var object = new Person('Sudheer');
133138
```
134139

anki/SJIQ - Javascript interview questions - sudheer jonna/Part I - Introduction/Chapter 1 - Interview Questions/103 - What is the use of stoppropagation method.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ The stopPropagation method is used to stop the event from bubbling up the event
1111
<div onclick="secondFunc()">DIV 2
1212
<div onclick="firstFunc(event)">DIV 1</div>
1313
</div>
14+
1415
<script>
1516
function firstFunc(event) {
1617
alert("DIV 1");
1718
event.stopPropagation();
1819
}
20+
1921
function secondFunc() {
2022
alert("DIV 2");
2123
}

anki/SJIQ - Javascript interview questions - sudheer jonna/Part I - Introduction/Chapter 1 - Interview Questions/109 - What is an event delegation.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ For example, if you wanted to detect field changes in inside a specific form, yo
1010

1111
```javascript
1212
var form = document.querySelector('#registration-form');
13+
1314
// Listen for changes to fields inside the form
1415
form.addEventListener(
1516
'input',

anki/SJIQ - Javascript interview questions - sudheer jonna/Part I - Introduction/Chapter 1 - Interview Questions/117 - What is the purpose of cleartimeout method.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ function greeting() {
1616
}
1717
function start() {
1818
msg =setTimeout(greeting, 3000);
19+
1920
}
21+
2022
function stop() {
2123
clearTimeout(msg);
2224
}

anki/SJIQ - Javascript interview questions - sudheer jonna/Part I - Introduction/Chapter 1 - Interview Questions/118 - What is the purpose of clearinterval metho.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ function greeting() {
1616
}
1717
function start() {
1818
msg = setInterval(greeting, 3000);
19+
1920
}
21+
2022
function stop() {
2123
clearInterval(msg);
2224
}

anki/SJIQ - Javascript interview questions - sudheer jonna/Part I - Introduction/Chapter 1 - Interview Questions/125 - How do you check if a key exists in an obj.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ obj.hasOwnProperty('key'); // true
3030
const user = {
3131
name: 'John',
3232
};
33+
3334
console.log(user.name !== undefined); // true
3435
console.log(user.nickName !== undefined); // false
3536
```

anki/SJIQ - Javascript interview questions - sudheer jonna/Part I - Introduction/Chapter 1 - Interview Questions/126 - How do you loop through or enumerate javas.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ var object = {
1212
k2: 'value2',
1313
k3: 'value3',
1414
};
15+
1516
for (var key in object) {
1617
if (object.hasOwnProperty(key)) {
1718
console.log(key + ' -> ' + object[key]); // k1 -> value1 ...

anki/SJIQ - Javascript interview questions - sudheer jonna/Part I - Introduction/Chapter 1 - Interview Questions/127 - How do you test for an empty object.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ function isEmpty(obj) {
2727
return false;
2828
}
2929
}
30+
3031
return JSON.stringify(obj) === JSON.stringify({});
3132
}
3233
```

anki/SJIQ - Javascript interview questions - sudheer jonna/Part I - Introduction/Chapter 1 - Interview Questions/128 - What is an arguments object.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ function sum() {
1414
}
1515
return total;
1616
}
17+
1718
sum(1, 2, 3); // returns 6
1819
```
1920

0 commit comments

Comments
 (0)