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

Published 2022-04-04 19:04 258 words 2 min read ... Page views

cos avatar

cos

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

文章整理了一则前端小厂面试经历,涵盖JavaScript基础(闭包、作用域、节流防抖)、CSS布局、浏览器缓存、前端技术栈及项目经验等内容,重点考察了面试者对核心概念的理解和实际应用能力。面试问题偏向基础“老八股”,考察点包括原理实现与场景应用,整体体现了一次典型的前端开发岗位面试流程。

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~

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