Can have the big factory interview opportunity, absolutely must cherish, because he really can help you to find out your too many shortcomings, accurately hit your weakness!

My interview results

Ah! A long sigh… I’m on my knees! However, this interview is definitely the most rewarding one in my interview career, and it also makes me frustrated. He successfully let me kneel in front of the factory, and let me to understand myself again, not to write a page is front-end development engineer, not to call an Ajax, is front-end development engineer, not to write a CSS is front-end development engineer!

About the interview questions

First of all, it must be admitted that bytedance’s interviewers are really nice. Other authors have shared their experience of dachang’s front-end interviews in the past. Many people say that bytedance’s interviewers are the most kind and amiable! (Don’t really kiss — it’s across the screen!) I will carefully check what the interviewer has asked me!

To introduce myself

In terms of self-introduction, I really don’t have much to say. I believe that many front-end development partners have the same feeling with me! After all, most of your corporate life is devoted to repetitive demands, and don’t say you don’t have one! Unless your job is really unsaturated! Haha… However, self-introduction should not be taken lightly because it can be the key to unlocking the interviewer’s interest. If you make a good introduction, you can take steps to lead the interviewer to ask for information that you are familiar with without being led by the interviewer. But… I really do not have very good can say the export of things ah! This is really hurt, so, or advise you small partners, in the amateur life, or to do some of their own interest, forget it! Maybe you’re not interested either! Be sure to do something that you don’t know but is very important to the front end and try to implement it! For example, I am not very familiar with Node knowledge, usually not used in the development, if you really have a particularly outstanding open source project, be sure to introduce it, it will arouse the interviewer’s great interest! Off topic…

First question: Tell me about a challenging task you encountered in a project.

This is an open question! Completely rely on the interviewer himself in the peacetime development of self summary! I think what the interviewer really wants to know is how you solve difficult problems in development, and as mentioned above, do you have some knowledge that you may not use in your normal work, but you have to master as a front-end developer. This varies from person to person, a lot of summary, a lot of learning teaching, this is the future into dachang paving stone.

Question 2: On flex layout, how to achieve vertical center?

I believe that if you are preparing for an interview, you will have seen in various articles and blogs that there are 1001 ways to achieve vertical center of Flex. The interviewer wants to check not only that you can tell the vertical center of Flex, but also that you need to master the whole flex layout knowledge, because the emergence of flex layout, Greatly reduce the burden of development page, brief, lightweight, semantic! Did you really get it? Still don’t go to ruan Yifeng’s blog?

Question 3: What happened to the browser, from URL entry to full rendering of the page?

You’ve seen this before, but can you describe it completely? I feel, you should pass again from the brain inside, do not leave any knowledge point, because this inside can ask for knowledge, really too much! DNS resolution, HTTP requests, about caching, HTML trees, page rendering, backflow, redraw. Do you have it all figured out? Check out blogs!

For page loading, does CSS parsing affect JS execution? Does CSS loading affect it?

If you’ve read Javascript advanced programming in its entirety, you know the difference between Async and Deffer! Don’t say you don’t know this, if you really don’t know, then go look!

Question 5: What is the execution order of promises?

We all know that promises are implemented asynchronously, but do you know why promises are implemented asynchronously? What is the meaning of the parameters of the then method? My mind went blank. I was calling the interface and using promise every day. I also use the then method every day, that is, I can’t tell! Don’t be like me, because MY grasp of the possibility is really not thorough, so soon revealed, and haven’t asked you the principle of promise implementation!

Sixth question: input box input, request background interface, the first interface returned information may be slow, to the second call after the information has returned, the previous data came out, how to avoid the page is the first interface returned information covered?

My answer at that time was to send fields to the back end, and then determine the order of returned fields, such as A interface parameter pass 1, call again pass 2… The interviewer is not satisfied, because if the page a large number of GET requests, very inconvenient, but also to pass the reference! How to solve it? I didn’t have a good idea. Did you? (Interviewer: You can intercept in Axiox Response, compare the parameters we sent, and then filter out the data returned by the input value)

7. Multidimensional input, how to determine the deepest level of the array? For example: [1,3,3[4,6,7,[5,6,7,43,[23,4]]]], return 4!

Go ahead, break your imagination. How many ways can you do that? The first kind: recursion, but, kill chicken with ox knife? Is it more convenient to convert an array to a string, and then investigate how many ‘[‘ alive’] ‘?

What is the difference between HTTP and HTTPS?

Everyone knows THAT HTTPS is more secure, so how does he do it? Where is symmetric encryption used? Where is asymmetric encryption used? This article is not a summary of the knowledge points, if you do not know, then learn!

How do you usually study? What front-end book?

Answer by yourself ~ read a lot of good, don’t let a person feel you are a guerrilla good!

What do you want to ask me?

I thought I knew how to solve problem six!

conclusion

The interviewer is very nice, you need to prepare really a lot! There is no end to learning. If you can have an interview, you must go to the interview, so that you can know that you are really nothing and have a lot to learn!