You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-1Lines changed: 24 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -89,7 +89,8 @@ I hope my experience and the experiences of other developers will help you get b
89
89
1. What patterns do you know and successfully use in JavaScript?
90
90
1. What is the difference between Deferred and Promise objects? Where is Deferred object used?
91
91
1. What is the problem throttling and debouncing are resolved? What is the core difference between them? - [@answer--medium](https://medium.com/@_jh3y/throttling-and-debouncing-in-javascript-b01cad5c8edf)
92
-
1. What is SOLID? [@answer-wiki](https://en.wikipedia.org/wiki/SOLID_(object-oriented_design))
92
+
1. What is SOLID? [@answer-wiki](https://en.wikipedia.org/wiki/SOLID_(object-oriented_design))
93
+
1. What is the difference between inheritance and composition? What do you prefer? Why? [@answer-hackernoon.com](https://hackernoon.com/javascript-functional-composition-for-every-day-use-22421ef65a10), [@answer--medium](https://medium.com/front-end-hacking/classless-javascript-composition-over-inheritance-6b27c35893b1)
93
94
94
95
## Javascript Coding Questions
95
96
* Write a `pipefy` function where a string received is returned, but with the `|` character between each character. Make it possible to execute function in this way: `'javascript'.pipefy()`. - [@code-answer](https://jsfiddle.net/thisman/6ynaf3ot/)
@@ -164,6 +165,28 @@ var b = function(obj, val) {
164
165
}())
165
166
```
166
167
168
+
Which one of the function expression below would be the best choice for the `prototype-constructor` pattern (a, b, c)? Why?
169
+
```js
170
+
functionMan (name) {
171
+
this.name= name;
172
+
}
173
+
174
+
// a
175
+
Man.prototype.getName=function () {
176
+
returnthis.name;
177
+
}
178
+
179
+
// b
180
+
Man.prototype.getName=functiongetName() {
181
+
returnthis.name;
182
+
}
183
+
184
+
// c
185
+
Man.prototype.getName= () => {
186
+
returnthis.name;
187
+
}
188
+
```
189
+
167
190
## React interview questions
168
191
1. What happens when you execute `setState()` in the `render()` method?
169
192
1. What is the difference between 'smart and dummy' components?
0 commit comments