Skip to content

Commit 69dc074

Browse files
authored
New JS and common questions
1 parent e2e81ba commit 69dc074

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

readme.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ I hope my experience and the experiences of other developers will help you get b
2929
1. How big was your team?
3030
1. Have you ever worked in [Agile, Scrum or Kanban](https://www.smartsheet.com/agile-vs-scrum-vs-waterfall-vs-kanban) environments?
3131
1. Which developers do you know in the Front End community?
32+
1. How do you develop yourself?
3233
1. What have you heard about the 'Gangs of four'?
3334
1. What are the most common types of web attacks? - [@answer--blog.sucuri.net](https://blog.sucuri.net/2014/11/most-common-attacks-affecting-todays-websites.html)
3435
1. What is the difference between imperative and declarative programming in JS? - [@answer--redotheweb.com](http://www.redotheweb.com/2015/09/18/declarative-imperative-js.html)
@@ -44,12 +45,13 @@ I hope my experience and the experiences of other developers will help you get b
4445
quehub.io/) or Browserify in your projects?
4546
1. What do you know about "60fps"? How can you achieve it? - [@answer--github](https://github.com/vasanthk/browser-rendering-optimization)
4647
1. What is the difference between layout, painting and compositing? - [@answer--google](https://developers.google.com/web/fundamentals/performance/rendering/?hl=en)
48+
1. What is Web Components? - [@doc--mdn](https://developer.mozilla.org/en-US/docs/Web/Web_Components)
4749

4850
## HTML Interview Questions
4951
1. Could you list major HTML5 tags? - [@doc--mdn](https://developer.mozilla.org/en-US/docs/Web/HTML/Element)
5052
1. What does an 'optional' closing tag mean? - [@doc--w3](https://www.w3.org/TR/REC-html40/index/elements.html)
5153
1. When and how to preload resources? - [@answer--medium](https://medium.com/reloading/preload-prefetch-and-priorities-in-chrome-776165961bbf)
52-
1. What is the difference between id and class?
54+
1. What is the difference between id and class? - [@answer--css-tricks](https://css-tricks.com/the-difference-between-id-and-class/)
5355

5456
## CSS Interview Questions
5557
1. What is the difference between 'mobile first' and 'desktop first' - [@answer--codemyviews.com](https://codemyviews.com/blog/mobilefirst )?
@@ -65,6 +67,8 @@ I hope my experience and the experiences of other developers will help you get b
6567
1. What is the type of NaN? How to check if a value is NaN?
6668
1. What the reason that `window.window === window` return true? - [@doc--mdn](https://developer.mozilla.org/pl/docs/Web/API/Window/window)
6769
1. What is the outcome of the JavaScript calculation? `1/0 = ?`
70+
1. What is hoisting? [@doc--mdn](https://developer.mozilla.org/en-US/docs/Glossary/Hoisting)
71+
1. What is the difference between bubbling and capturing? - [@answer--stackoverflow](https://stackoverflow.com/a/4616720/5513804)
6872

6973
#### Middle candidate
7074
1. What does `this` refer to? - [@answer--javascriptissexy](http://javascriptissexy.com/understand-javascripts-this-with-clarity-and-master-it/)
@@ -74,11 +78,13 @@ I hope my experience and the experiences of other developers will help you get b
7478
1. What is [`Window.postMessage()`](https://davidwalsh.name/window-postmessage) and where it can be used? - [@doc--mdn](https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage)
7579
1. Is there any difference between Promises and callbacks? Which is better? - [@answer-callback--callbackhell.com](http://callbackhell.com/),
7680
1. What is recursion? When is the use of recursion useful in Javascript? - [@answer--medium](https://medium.com/@dis_is_patrick/practical-uses-for-recursive-javascript-b8f142552f8b)
81+
1. What do you hear about DRY, KISS, YAGNI? - [@answer-thefullstack.xyz](https://thefullstack.xyz/dry-yagni-kiss-tdd-soc-bdfu)
7782

7883
#### Senior candidate
7984
1. What patterns do you know and successfully use in JavaScript?
8085
1. What is the difference between Deferred and Promise objects? Where is Deferred object used?
8186
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)
87+
1. What is SOLID? Using some example talk about
8288

8389
## Javascript Coding Questions
8490
* 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/)
@@ -137,14 +143,21 @@ var a = function(obj, val) {
137143
return obj;
138144
}
139145

140-
141146
var b = function(obj, val) {
142147
return obj.val = {
143148
a: 1,
144149
b: 2,
145150
}
146151
}
147152
```
153+
* What would be the output of this code below?
154+
```js
155+
(function () {
156+
console.log(a, b);
157+
var a = 1;
158+
const b = 2;
159+
}())
160+
```
148161

149162
## React interview questions
150163
1. What happens when you execute `setState()` in the `render()` method?

0 commit comments

Comments
 (0)