Front-end interview summary
After resigning, I emptied myself for a long time. Recently, I started looking for a job on September 15. This post records my interview experience. Everyone has similar experiences. I hope to leave a message in the comment area. If there are many people, I can set up a group to encourage each other in the future.
Balabala ~
Let's talk to you about your thoughts, I got it on September 21stOutsourcingI don't want to go to offer, but with just one year of experience (I recruited a school last year) and the window period, this interview market does not give me an interview opportunity. I thought I had a good grasp of front-end technology.reactvue webpack ts js … I have read the source code, debugged it, and I have simply handwritten some concepts. I probably don’t shake half a bottle of shake - it’s “okay”, it shouldn’t be difficult to find a job. After all, I still got some offers from the middle school factory before. Later, after the interview, I asked myself that I was really not eye-catching enough and my foundation was not good enough. It’s worth noting that I can’t find a job without being a fresh graduate. It’s even more a sin to quit naked…
All recruitment apps require three years of experience. I don’t have a special academic qualification for both non-university, and my years are only one year, and I even encountered the downhill of the Internet. I didn’t realize how cold and long this winter is. I only know how PC-side development is. If not, this market is already saturated. Without growing demand and projects, there is no need for recruitment. Those who go ashore should not go into the sea to protect their pits, but there is a market for the front end, which is the so-called mirco frontend, which reactNative small programelectronLearn and use things that can be expanded in front-end such as uniapp (actually, many people have learned these things, and they can only say that I am too lazy and have not done it even if I have time) To increase my knowledge reserves as much as possible, it is definitely not difficult to find a decent job. This time, I will also give me a warning. I am not well educated enough and have no inner thoughts. Haha~~
In short, if you make mistakes every step, don’t think about the benefits in the next two years. Stay in outsourcing for two years and make your skills more solid in your spare time (this time you have to remind yourself repeatedly) add some years, and try it later. With your current qualifications, you are not qualified to choose an offer...
September 16th A bank outsourcing hr telephone interview + technical interview of outsourcing company (√)
1 Life cycle
The react stage has the render() commit stage, which is divided into the before mutation mutition layout stage
Combined with usComponentsWhen creating, answered after update and destroyed
2 setState synchronous or asynchronous
You need to look at the calling environment. If react is called by itself, then we will first collect and merge our status updates, and then update the dom. At this time, it is asynchronous.
If it is in a js environment, such as timers and ajax, it will be synchronized.
3 Understanding of functional programming
The source data cannot be changed and has no state.
4 Why can't you write hook in a conditional statement
The hook searches each time it is rendered by searching the linked list based on a "global" subscript. If used in a conditional statement, there is a certain chance that the status obtained will be incorrect.
5 The difference between HOC and hook
Hoc can be reusedLogic and Views, hook can only be reusedlogic。
6 The difference between useEffect dependency and componentDidMount
existrender
After execution,componentDidMount
Will execute if again in this life cyclesetState
, will causerender
, a new value is returned, the browser will only render the second timerender
Returns the value, which avoids splashing.
butuseEffect
It will be executed only after the real DOM rendering, which will cause tworender
, there may be a flash screen.
In factuseLayoutEffect
Will be closercomponentDidMount
They all execute synchronously and will hinder real DOM rendering.
September 19th A bank outsourcing comprehensive area (√)
I didn't ask anything, I asked the component of antdesign... (I asked some properties), then asked some anti-shake, and the project ended, and it was only 10 minutes.
September 20 Byte Outsourcing Technical Area (x)
I asked some react-related eight-legged essays (at that time, I thought he would ask some source code questions such as fiber tree, and hoped he would ask some begin work or diffalgorithmYes, after all, I spent two weeks reading this source code, and I still hoped that he would ask) and then add the knowledge of network requests and the attributes of cookies, etc. At that time, I didn't think about it. The other party should have wanted to ask network security questions such as csrf and xss. I didn't answer the point. I talked about the negotiation cache, and I only realized it when he asked me about the attributes of cookies (I don't know much, just know path and domian). The interviewer should want to hear something deeper.
There is an algorithm behind it, similar to cutting strings (if the regular is written well, it will be killed in seconds. Unfortunately, I don’t know the rules, I go to Baidu every time, haha) I write a bit slow, mainly depending on how you think and can record it. In the end, it should be that this one is written too slowly. I have never read the leet code, so I can sort it quickly and bubble sort.Data structureWe are both mixed with algorithm universities. Do you still need to practice this? ! Start with linked lists, recursion and other practices? Anyway, I'm going to do it...