Results: Baidu received oc after the second interview (5 days before the naked resignation); Three aspects of normal process + HR, receive offer (10 days before naked resignation), and decide to join; Ali finished the technical surface (technical four), see the feedback is the cross surface has passed, waiting for the HR surface.


Background description: At the beginning of this spring recruitment, I joined netease in early March. After working for two and a half months, I left netease recently due to business adjustment. Then I resigned and began to look for another internship to strive for the final opportunity of direct employment. (Quit on Friday, did not review on the beginning, began to face on Saturday, seven days in a row… Right! I will be interviewing on Saturday and Sunday. I have to say the interviewer is too ruthless.

There’s a fair amount of time spent talking about the project, so I won’t go into that for a minute. The overall feeling of the interview is no special interview questions, are more friendly and conventional.

I can’t remember the specific ones.

Js aspects

  • For of/for in difference, for of principle, why iterators, when objects can be used for of? What is the data type returned by symbol.iterator? What should I pay attention to when using “for in”? Why use obj.hasOwnproperty?
  • Promise +setTimeout: promise+setTimeout: promise+setTimeout: Promise +setTimeout What problem does it solve? How does a generator function do that? Ever wonder why iterators are called? Can we say more about coroutines? What is the principle behind async introduced in ES7?
  • Js garbage recycling can say, why should be divided into the old generation and the new generation, their recycling algorithm is what. Did you know about the memory leak? How do memory leaks happen?
  • What is a closure? How did it come about? Can you tell us from a lexical point of view?
  • New Binding process
Function.prototype.a = 1; 
Object.prototype.b = 2; 
function Test() {}let t = new Test(); 
t.a? t.b?
Copy the code
  • This is relevant, what is the output and why? What’s the problem with this? Why does the arrow function’s this point outside? The clipper function doesn’t have an execution context.
var obj = { 

  fn: function(){ 
       console.log(this) //this-> 
       return ()=>{ 
           console.log(this) // this-> 
           (function(){console.log(this)})(); //this->window 
           setTimeout(function(){console.log(this)},1);  //this-> 
       } 
  } 
} 

obj.fn()();
Copy the code
  • Lexical analysis is relevant. What is the output and why? (This has changed several times, from easy to difficult…)
var a = 1; 

(function(a){ 

     alert(a++); 
   leta = 2; })(a); alert(++a); / / 1, 3; NAN,2; NAN,2; 1, 2,Copy the code
  • Let const var = const var Also, let is not bound to something like window by default
const a = {};
a.b = 1;
Copy the code
  • Iterator symbol. HasInstance, symbol. ToPrimitive does what?

CSS really doesn’t ask much

  • How much flex is used? What does flex-shrink flex-grow mean?
  • CSS selector A B and A > B

Browser dependent

  • Tell me what happened from entering the URL to the page appearing, as much as possible
  • CSRF XSS attacks respectively say what, and how to prevent it?
  • What about HTTP caching?
  • Can you explain how HTTPS works
  • Tell me what you know about HTTP status codes
  • What does Http2.0 introduce and what problems does Http3.0 solve?

Vue related

  • Vue is different from React
  • Vue transform detection principle
  • Why did Vue introduce the virtual DOM
  • What’s new in Vue 3.0
  • What is the difference between vUE virtual DOM and traditional binary tree update
  • What does vue’s key do
  • How would you rewrite the push method of an array to implement responsive tracing, following the VUE pattern?

Algorithm part

  • [{id:1, name: 1, parent:1000}, {id:1, name: 1, parent:1000}] To make it a tree structure, O(n) complexity

  • Handwritten Coriolization functions

  • Implement the indexOf function

  • The oldest string without repeating characters

  • Distribution of biscuits

  • I can’t remember. It’s easy&Middle.