{"repo":"Sunny-117/js-challenges","free":true,"listed":false,"github":"https://github.com/Sunny-117/js-challenges","clone":"git clone https://github.com/Sunny-117/js-challenges.git","description":"✨✨✨ Challenge your JavaScript programming limits step by step 前端手写题，一步步提升 JavaScript 编程水平","language":"JavaScript","stars":2452,"topics":["html-css-javascript","javascript","nodejs","promise","react","typescript","vuejs"],"license":"MIT","category":"ui-components","readme_excerpt":"Welcome to js-challenges 👋 集锦大厂面试常考的 前端手写题和 leetcode 算法题 🏠 DOCS Author 👤 sunny-117 - Website: https://sunny-117.github.io/blog/ - Twitter: @zhiqiangfu6sun - Github: @sunny-117 - personal share: 个人分享 Project Status Star History CONTENT 前端手写题集锦 记录大厂 笔试，面试常考 手写题，2026 年前端面试中常见的 leetcode 算法题, 致力打造最全的前端 JavaScript 手写题题库和答案的最优解 题目来源：总结了牛客截止到 2026 年 3 月的所有大厂手写题[100%]，掘金部分出名的手写题文章，备战前端春招，秋招好友的总结好的题目(github), 就不一一列举链接啦，总之此项目题目来源于社区，答案也由社区讨论后 merge，也完全服务于社区。 谢谢您的 star，您的 star 是我更新的动力 🥳 里面有答案，为了让你们有一个参考，不过非常希望你们能提供自己的思路，指出答案中存在的问题，复杂度优化等等， 期待你们的 contribute, 想来一起维护这个项目，可以联系我，成为 contributor 最后我把社区的好的答案汇总到一个目录下，答案专栏，方便刷题 主要是让大家讨论出最优解，然后 merge，一起贡献这个项目，有些答案有点问题，所以我给出的答案仅作参考，也欢迎发现的小伙伴提 PR 🤝 Contributing Contributions, issues and feature requests are welcome! Feel free to check issues page. You can also take a look at the contributing guide. Thank you to all the people who already contributed to js-challenges! 前端 JavaScript 手写题 JavaScript HOT 100 题 中大厂面试，最常考的 100 个题，每一题都非常具有代表性，想要准备面试突击的同学，优先看这些题，祝在座的每一位都能拿到满意的 offer - 实现 Promise.all - JSON2DOM = react 的 render 函数 - 树形结构转成列表 - 列表转成树形结构 - Array.prototype.flat - instanceof - call apply bind - Array.prototype.map - 正则表达式模版字符串 - lodash.get - 深拷贝 - 寄生组合式继承 - 发布订阅者模式 - 岛屿数量 - 实现有并行限制的 Promise 调度器 - 实现一个 LazyMan 实现 Promise （hot） - 完整实现 Promise A+ - 实现 Promise.all - 实现 Promise.prototype.finally - 实现 Promise.allSettled - 实现 Promise.race - 实现 Promise.prototype.catch - Promise.resolve - Promise.reject Promise 周边场景题（hot） - 交通灯 - 封装异步的 fetch，使用 async ","default_branch":null,"files":null,"tree":[],"storefront":"/r/Sunny-117","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Sunny-117/js-challenges/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}