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

文章整理了一位前端开发者在小厂面试中的常见问题及回答思路,涵盖JavaScript基础(闭包、作用域、节流防抖)、CSS布局、浏览器存储与缓存、前端框架(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.

喜欢的话,留下你的评论吧~

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