This article has been machine-translated from Chinese. The translation may contain inaccuracies or awkward phrasing. If in doubt, please refer to the original Chinese version.
Small company interview, just gaining experience. The questions were all classic interview staples.
Shoplazza First Round
- Self-introduction
- Difference between
onClickandaddEventListener - Talk about closures
- Scope chain
- Closure use cases (higher-order functions, currying, etc.)
- Throttle and debounce implementation (explain the approach)
- Throttle: Start with a null timer. When the event triggers, if the timer exists, don’t process the event; otherwise, execute the event handler and set a timer.
- Debounce: Start with a null timer. When the event triggers, clear the timer and set a new one. The timer callback executes the event handler.
- CSS horizontal and vertical centering
- Talk about browser caching
- cookie, localStorage, sessionStorage
- Strong cache and negotiation cache
- Your resume mentions Redux. Do you understand its implementation?
- createStore implementation. See my previous blog post: Redux Learning Journey (1) - Redux Three Principles, createStore Principles and Implementation
- Pros and cons of async/await vs Promise
- What is cross-origin?
- Solutions to cross-origin issues
- Talk about insertion sort (I refused and talked about quicksort and merge sort instead)
- Why did you choose frontend?
- How did you self-study?
- Questions for the interviewer
- Business tech stack: B2B, building e-commerce websites for merchants, uses Vue, React, React being the majority. Open to new technologies, no compatibility requirements.
- When will results come out, etc.
喜欢的话,留下你的评论吧~