Front end of companion fish

One-sided interview questions

(About 1 hour)

Basic questions

  1. Please write the output content of the following code (event loop, macro task micro task, js code execution sequence, pay attention to the process.nextTick interviewer said that his execution timing is related to his environment?)Insert picture description here
  2. Please write the output content of the following code (closure)
    Insert picture description here
    3. Please write the output content of the following code (this points to, for example: the arrow function is not used when writing hooks in vue)
    Insert picture description here
  3. Please write the output content of the following code ()
    Insert picture description here
    5. http and https (some principles, do not understand, involving request headers, response headers, and the difference when capturing packets)
    6.

Programming questions

1. Parity sorting: Given an unordered Number array, sort the odd numbers in ascending order and even numbers in descending order and output the array
. Be careful to keep the positions of odd and even numbers unchanged
Insert picture description here

2. Compare the two version numbers version1 and version2. If version1> version2 returns 1 as
if version1 <version2 returns -1, except that 0 is returned.

It can be assumed that the version string is non-empty and only contains numbers and. Characters. The. Characters do not represent a small point, but are used to separate a sequence of numbers.Insert picture description hereInsert picture description here
Insert picture description here
Insert picture description here

3. Given a string that only includes'(',')','{','}','[',']', judge whether the string is valid.

The valid string must be full: the left parenthesis must be closed with the same type of right parenthesis. The opening parenthesis must be closed in the correct order. Note that an empty string can be considered a valid string.
Example 1:

Insert picture description hereInsert picture description hereInsert picture description hereInsert picture description here

Two sides

(About 40 minutes)
Mainly ask questions for the project.
This is my idea: first introduce the overall business of the project, talk about the technical framework of the project, and then talk about the part of the business + functions + technical points
you are responsible for. The interviewer will write according to what you have written Function to ask questions (how to solve the difficulties encountered)
Next:
1. 0.5px line
2.
Why are tcp and udp tcp reliable? (Congestion control, timeout retransmission)
http 1 (1.1, 1.2) and 2
3. Introduce the principle of vue vue two-way data binding

hr

(Twice 20min+15min)
Self-introduction (both one and two sides, my idea: flashback to the current experience and then the previous experience)
project experience
Why do you want to resign,
expect salary, the
fastest entry time,
can you come quickly? What are your concerns XXXX. . . . . Other issues are more personal

Guess you like

Origin blog.csdn.net/xiaoxiannv666/article/details/112255093