background
The management problems of the previous company led to the disbanding of the technical team and the rush to find a job once again. This article is to record the problems encountered during the interview. (Updated from time to time)
Details on the problem
Basic knowledge of
- How does the CSS grid system work?
- What is HTML5 and how does it differ from HTML4?
- Write three or more vertical and horizontal middle ways
- What is the process of entering a URL into a page rendering?
- What is object orientation? What are its three main features?
Browser dependent
- What is the browser garbage collection mechanism?
- What is a memory leak and what are the conditions?
- Browser Event Loop?
new Promise((res,rej) = > {
console.log(1)
setTimeout((a)= > {
console.log(4)},0)
res(3)
}).then(x= > {console.log(x)})
console.log(2)
// Output order?
Copy the code
- Browser caching mechanism?
- How does a PUT DELETE request parameter differ from a GET and POST request?
- What are the components of the request message?
- What is websocket?
- What is a Web worker?
- What is PWA?
Js related
- Understanding closures
- Several implementations of inheritance
- Implementation principle of Jsonp
- Retrieve all img tags in a string using the re (consider Alt =” img tags inside “)
- What is your understanding of ES6 map and set? WeakSet What is the difference between weakMap and weakMap?
- How do you implement async and await with JS?
Third-party libraries
- What are the important features of WebPack? How to optimize the use of experience
- What’s the difference between Vue and React?
- What are the ways to implement bidirectional binding
- Talk about your understanding of Vue dynamic components and functional components.
- What are the life cycles of Vue custom instructions?
- Vue’s diff algorithm?
- Vuex event flow? How to design a Store?
- Does Vue use computed and Watch differently?
- In Vue I set a for loop 10 times to change the value in data, okay? Will the page render 10 times or once? In terms of performance, it should be rendered once. How does vUE implement rendering once?
- How does Vue Router work?
function
- How does Baidu count user clicks on each A tag on the page?
- When a table has tens of thousands of entries, how do you optimize the page so that it doesn’t lag?
- What is the solution to sudden WebSocket connection failure?
- How to solve the single page application home page rendering blank screen?
- Single page mall home page is constantly loading commodity data, when the amount of data is too large, it will cause the mobile terminal page lag, how to optimize without losing functional integrity?
- Front-end performance optimization?
- What are web attacks? How does the front end improve Web security?
Wonderful work problem
- I need you to draw two pictures, with a house and a swimming pool on the front and a tree on the back.
- The manhole cover we see on the road is round or square, why?
- How do you get out of a blender if you are a pencil-tall person?
- Yesterday I climbed from the foot of the mountain at 8am and reached the top at 8pm. The next day I came down from the top at 8am and arrived at the foot of the mountain at 8pm. Is there a moment when I was in the same position yesterday and today?
Above is a few front end face test questions that I encounter, share to everybody, common progress, the person that hopes to leave office finds a good job as soon as possible!!
I wrote a little book of front-end experience and share it with you.Github and Browse the web site