From the last 17 years after the departure of the company will try to ali the interview in the past, the results haven’t enter the state and be cool ~, in scallops for more than two years time, catch up with the right to rent the house to expire, just try it again, the result is pretty well got the p6 offer, while now stay at home where also don’t let go of kung fu and prepare the interview process, Hope to help you ~

One side

  1. To introduce myself

Here is omitted, the general self-introduction of the time should not feel too long, simply say good ~

  1. Consult on a project from shallow to deep

Because I am at present, the company involved in an earlier small program, and there were no more mature online monitoring solution, so we get an online fault monitoring system, then I will take this project, the interviewer will carefully from the design train of thought, operation principle and so on began to ask, have been asked if the back-end data slow query how to solve, The problem of time probably accounts for more than half of the interview time, and then experience is everybody must oneself to design and implement some actual projects, can’t stay on liverpoolfc.tv look not to implement the level, only if the project is not my spearheaded and personally implements some process may be very easy to get stuck, Problems encountered in the process are valuable experience, of course, is part of the growth ~

  1. A brief introduction to front-end modular, AMD, CMD, CommonJS ES6 module

Very embarrassed, because we are at present, the company is using the esm directly, plus himself did not used on the front end project amd and CMD class library of the project, and then combined with abnormal tension (a nervous to speak pant, haha), then only talk to a synchronous loading, is an asynchronous loading, is not say it is a front dependence, One is to rely on nearby, the interviewer was also very nice, heard I was a little nervous and did not continue to ask, said a word of comfort to me – now not much use ~, ha ha ha

  1. Commonjs or ES6 module which supports asynchrony

Followed by the question, emmm.. The es10 version added the asynchronous import() mode to load a module, so the answer is no doubt that ESM currently supports async. In fact, if you think about it in retrospect, it is also easy to use the elimination method. Since the CommonJS specification is mainly for node, node loading of modules is nothing more than reading and writing files, so there is no need to support asynchronous loading. Reading and writing IO is fast

  1. Relationship between async await and promise

This question was a question I failed to answer in the first interview with Ali, so the interviewer asked me specifically. Of course, it is easier to look at this question now. Async await is a syngrammatical candy combining promise and generator functions, and there is nothing to say about it

  1. Oral code to implement polyfill of promise.all

Maybe I was still worried that I was not familiar with this area, so I asked another related question. This one was relatively simple. I wrote the code directly, and it was dictated at that time, so the idea was the same.

Promise.myAll = function(. args){
     const result = [];
     let isFail = false;
     let errInfo;
     let j = args.length;
     for (let i = 0; i < args.length; i++){
         // Stop the loop if there is an error
         if(isFail) {
            return Promise.reject(errInfo);
         };
         // Run promises one by one
         args[i].then(res= > {
            // Process the result
            result.push(res); 
            j--;
            if(j === 0) {return Promise.resolve(result);
            }
         }).catch(err= > {
            // Set a flag to stop the loop and store error messages
            isFail = true; errInfo = err; }}})// All of the above is untested pseudo-code that has not been run
Copy the code
  1. Flex layout, fixed height, fixed width on left, adaptive on right?

Display :flex, left child flex: None, width:100px, right child flex:1 will do, of course there are other ways, this should be the simplest ~

  1. If the child element does not inherit 100% height, how to achieve full?

I didn’t know what the interviewer meant at that time. I asked if I wanted flex layout along the vertical axis. And then the interviewer said um… You can do that, too. I was stunned. When I came back, I wondered if it means that if the child element cannot inherit 100% height, can it combine the positioning method, such as the parent element relative and the child element absolute, and then the four positions are 0? I don’t know if this means ~ can not be studied ~

  1. Understanding of TS

Ts with not many, because most of our projects are based on h5, first of all, is not very complex logic, because each part is three or four pages and most basic it doesn’t matter, with another part business decisions are not very suitable for ts, so also didn’t how to promote in the team, but there are projects in the background, with the ts is to manage the end, So briefly said ts and JS advantages and disadvantages ~

  1. What does ts generics do

Ts didn’t react how to answer, because the itself with much, generic use of a few, but then I thought for a moment in Java generics, plus interviews, I will give the answer is a generic determines a type under different scenarios to from beginning to end under each scenario of the same type, a bit of a mouthful, but should be so mean ~

  1. What will you do if the monitoring system is needed by another group and their needs are not met

Moment didn’t react the interviewer to ask what, so a lot of, for example to see whether there is a time in your team, to see whether the demand is reasonable, to see the demand is a customized demand or a more general demand, and so on all kinds of circumstances are how to deal with to his plan, and then the interviewer interrupt me said that I ask don’t mean that, Will you do it or will another group do it? I say or score the situation to see the matter and the arrangement of time, and then the past ~

Basically, the end is here, EMmm, just hung up the phone, there happened to be a colleague who quit from scallop before in the department of the interview, it happened to be the same department, my brother told me congratulations while passing. Ha ha, the second side is not so tense

Second interview

The second interview began at 8 PM, so the interviewer said he was going to talk for half an hour, but the conversation was too much

  1. Design a component that can be dragged and dropped and then switched to another location.

Emmm, there are a lot of online, generally about some of the drag and drop API, and then how to carry data these, I will not expand ~

  1. What if there are two teams, one team wants to use a library from the other team, and they still want to add it only when they need it?

Emmm.. I will first say the answer, is to use externals in webpack to configure an asynchronous import of CMD, this is the interviewer’s answer, but I remember the interviewer did not mention the use of webpack at the beginning, I have been thinking about how to asynchronous dependency, I said they can publish to their own private server NPM, Then another team installs it, using import for asynchronous loading. Balabala talked for a long time until finally the interviewer came and said, do you know the Externals of Webpack? I just realized… Emmmm, okay

  1. What questions do you consider when designing a component?

Have to say this is a good question, component to write every day, but do not have a good finishing, finished then asked me, I am mentally to force, I wonder what need is to see what it looks like the design of the bai, main is to consider the scalability, actually this I noticed that every time I developed time, but suddenly don’t know how to say, Balabala talked a lot about requirements analysis, determining inputs and outputs, thinking about scalability, how others are going to use it, but I think what the interviewer is probably asking is how do you design a common component

  1. Return to a project on my resume, the core of this project is to operations and products can replace online activities or landing pages of image resources and copywriting content, as well as replacement of function, the interview has not been fully implemented, but has now launched a simple version, with can also, waiting for the subsequent iterations, The project asked for some simple ideas, and I was going to describe the caching we did in Node, but the interviewer said I understood emMM, probably too late, haha

This is really my own idea. It is too limited. In addition, we have done very little configuration through the externals of webpack, which is basically simple jquery. Later for convenience are directly NPM installed to rely on, in fact, still depends on the scene, sometimes lazy is really a problem ~~

On three sides

After about three days, the notice from the three sides came down. The three sides were p8 bosses, who did not ask about the basic knowledge from beginning to end.

  1. To introduce myself

Omit..

  1. What are the main businesses?

Briefly chatted about the business in the company…

  1. Why does it feel like your product is going to be better than someone else’s business?

This question relates to the core selling points of some products.

  1. See you are leading a project, how do you usually coordinate resources?

A lot of…

I don’t remember the last few questions, they are basically related to business, as well as how to communicate and cooperate with products and operations.

The three aspects are basically related to the business. In conclusion, I think the interview will pay more attention to the business later. These things are not what you can get at the last minute. Before I also said we have to do every development has always been the development of a soul, don’t get really just defined as code farming machine, we would like to add your own thinking, for example, the received needs to have their own understanding, how to help the demand more perfect to implementation requirements, which do not, which demand are pseudo unreasonable demand, Should be everyone to learn and master, at least in the familiar link to understand thoroughly ~

All around

Probably also is three days or so, all around the notice also came down, is a P9 big guy, than I imagined to be a little bit old ha ha, so small partners do not have to worry about what we eat is youth rice, refurefute struggle ~

  1. What is the h5?

It’s a historical version of HTML, and it’s a protocol that dictates what html5 does and doesn’t support.

  1. Name a few of the h5’s new features

Many, such as media ah, storage related and so on

  1. I’ve seen you do applets, what do you think is the relationship between applets, WebView and H5?

Webviews are containers that can be used to host HTML content, but applets are different from standard WebViews, they host their own HTML syntax, etc…

4. What are your main ways of doing business?

Native + WebView also has applets, only background projects on the browser side, not many

I don’t remember the questions behind, but I feel the four questions are relatively simple, and the time is not long, just 20 minutes, probably because it is about to go off work at night ~

conclusion

Three and four are video, I am online 10 minutes in advance, when you speak to the interviewer can see your words and deeds, or pay attention to the surrounding environment is also tidy, to leave a good impression to the interviewer ~

After about 2 weeks, the interview was completed smoothly. The final HR interview was on site, and I also asked a lot of personal questions. The CONTENT of the HR interview was quite large, and the HR interview involved some technical issues, but of course it was not the basic content

Finally, I got the offer and the salary I wanted. I want to share all the interview content I can think of. Come on, I’m looking for a position in Nanjing, some want to change to Ali, some want to exchange interview experience, some want to get some private experience, EMMM, and some want to technical exchange. You can pay attention to this official account to learn and communicate ~(PS: the official account has the author interview resume for your reference)

Write in the last

Come on Wuhan, come on China, all this will pass ~