2022 Spring Shoplazza Frontend Internship 1st & 2nd Round Interview Experience

发表于 2022-04-04 19:04 258 字 2 min read

cos avatar

cos

FE / ACG / 手工 / 深色模式强迫症 / INFP / 兴趣广泛养两只猫的老宅女 / remote

文章介绍了某小公司前端岗位的面试过程,涵盖经典面试题如onClick与addEventListener的区别、闭包与作用域链、节流与防抖实现、CSS居中、浏览器缓存机制、Redux原理、异步处理对比、跨域问题及排序算法等。面试者结合自身经历,阐述了前端开发兴趣、自学路径及对业务技术栈(Vue/React为主)的理解。

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 onClick and addEventListener
  • 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?
  • 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.

If you enjoyed this, leave a comment~

© 2020 - 2026 cos @cosine
Powered by theme astro-koharu · Inspired by Shoka