All kinds of interview questions required for Web Front-end job-hopping after years, and for web Front-end job-hopping
Lucky and glorious, the boss arranged a task-"sort out front-end interview questions ". Years ago it was really not a good time to recruit people, so our front-end team was overloaded and finally insisted on the Spring Festival. After the Spring Festival, I started recruiting people. The goal of this set of questions is to lay the foundation and then lay the foundation.
Statement in advance:
◆ Source of these questions: I have been asked for an interview; I have been asked or met for a job; I have seen it online...
◆ The answer is really not provided. It is true that many questions require personal understanding and accumulation, so please do it yourself... the front-end can try to answer a few questions, haha.
◆ In fact, I don't have a good answer to many questions. If I encounter a cool person during the interview, I can also exchange ideas by the way. I am only one side, and I am not afraid of shame.
◆ If your friends have good interview questions, you are welcome to give suggestions. I will actually update them. Thank you first.
HTML-related
1. <! DOCTYPE> label definition and usage.
2. What are block-level and intra-row elements?
3. Do you really understand HTML? The Yahoo interview questions show you the yellow bottom section and search it. (I was asked during an interview at a company called langlang. This is indeed a good question ).
CSS Problems
1. Introduce the known CSS hack skills (such as _, *, +, \ 9 ,! Important ).
2. Introduce the CSS box model.
3. What is CSS Cascade? Introduction.
4. All CSS browser compatibility issues are known.
5. Sometimes you will be asked some questions about the drill point, such as the position value and what new content does CSS3 have...
JavaScript Basics
1. What are the status messages of the HTTP protocol? (For example, descriptions of 200 and 302)
2. What Is AJAX? AJAX interaction model (process )? What is the cross-origin AJAX solution?
3. What is the difference between synchronization and Asynchronization?
4. Briefly describe JavaScript encapsulation.
5. Description of the two forms of JavaScript inheritance.
6. What is a closure? In the following code, click <p> what will be output? Why? If you can make a general summary, continue to ask questions and come up with several solutions.
- <! Doctype html>
- <Html>
- <Head>
- <Meta charset = "UTF-8"/>
- <Title> closure demonstration </title>
- <Style type = "text/css">
- P {background: gold ;}
- </Style>
- <Script type = "text/javascript">
- Function init (){
- Var pAry = document. getElementsByTagName ("p ");
- For (var I = 0; I <pAry. length; I ++ ){
- PAry [I]. onclick = function (){
- Alert (I );
- }
- }
- }
- </Script>
- </Head>
- <Body onload = "init ();">
- <P> product 0 </p>
- <P> product 1 </p>
- <P> product 2 </p>
- <P> product 3 </p>
- <P> product 4 </p>
- </Body>
- </Html>
7. Application and usage of the this keyword in JS (such as in constructor and setTimeout ).
8. Briefly describe the operations on cookies and the attributes of cookies.
9. What are the JS compatibility of IE and FF.
10. DOM operations-how to add, remove, move, copy, create, and search nodes (This question is really a basic question and is generally not asked ).
JQuery-related
1. Have you tried to read jQuery source code? Let's talk about the basic architecture or the judgments made by jQuery. fn. init.
2. All know the bad jQuery writing methods.
3. Have you read Sizzle?
Other related bonus points:
1. I have used and understood which editors? What daily tools have you used and understood?
2. All know which browser kernels are available? Which browsers are compatible with developed projects?
3. What do JS coders both at home and abroad know?
4. Do you know about Waterfall stream layout or stream layout?
4. Have you ever studied regular expressions (reading books or online tutorials )? If you have any questions, ask for simple email verification and URL verification, or ask about the theoretical knowledge of greedy matching and lazy matching.
5. Have you tried Node. js? To what extent? What do I think I understand?
6. What new JS APIs does HTML5 have?
7. What are front-end optimization knowledge?
8. Basic algorithm questions (such as fast sorting, can you talk about important core principles or array deduplication in one or two sentences ).
9. Have you ever touched or understood refactoring.