注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
大家好,12月挂了前端intern。前端的题库确实不算很深,但是本人没有把握住机会,所以非常伤心,一直没有来发面经。地里的面经一路上帮了我很多,因此今天发出来回馈大家。我当时准备的时候基本上翻遍了地里和grassdoor上的面经,整理了一份详细的资源。大家觉得有用可以加个米!助力楼主春招加油,🙏
先附上timeline:
11.1 找学长内推
11.10 hello from meta
11.17 call with hr (下附面筋)
11.30 phone 当天出结果move to next round
12.10 vo
12. 20 拒
然后是楼主面筋:
【1st round】call with hr
hr会电话里问一些js的基础问题,和地里面经基本上一摸一样。我整理了放在下面。
【2nd round】phone
年轻白人小哥很友好,问了
1. event emitter
2. clearAllTimeout
3. debounce
都是地里高频题,BFE上有题目和代码。因为都是楼主写熟的了题,follow up也打上了,当天就move to next round了。
【3rd round】vo
1. memorization
2. curry
中年白人男面试官,一边写码一边问一些很细的follow up(现在具体想不起来都问了啥了),楼主有的没答上来,后期心态也不好了,开始沉默写码,而不是一边码一边和面试官沟通,现在复盘应该是挂在这里了。
接着附上楼主整理的面筋&网站:
最后楼主想多bb一句,希望拿到面试的小伙伴们能抓住机会,抓住BFE这个网站好好刷题,不要只停留在把题目写出来,而是多想想每一步可能有什么变体/follow up。前端出原题的概率是非常大的。
有用的话求加个米,希望大家都能拿到心仪的offer
补充内容 (2022-01-12 13:49 +8:00):
感谢大家的鼓励和加米!经过提醒,有两道题说的不是很清楚,这里补充一下:
一 【hover】这里题目应该是:Given a large image and a small image how would you position the small image over the large image on hover. Also each of the images should go to different URLs.
相关题目和链接:
1. Given a picture, how would you hide/show a child picture on hovering on this parent?
https://www.glassdoor.com/Interv ... ent-QTN_1502329.htm
2. How would you ensure clicking on this picture would go to a specific link?
https://www.glassdoor.com/Interv ... ink-QTN_1502330.htm
3. How would you ensure the child is positioned in the top right of the parent picture?
https://www.glassdoor.com/Interv ... ure-QTN_1502331.htm
二 【Json -> DOM Tree】对应bfe题号是:113. Virtual DOM I
附上链接:https://bigfrontend.dev/problem/Virtual-DOM-I
补充内容 (2022-01-20 13:37 +8:00):
三【animation right】 bfe上没有对应
可以参考 紫野小小苏 的 animationEl ,传入 (element, duration, distance)
给定一个element,需要手写animation让element在duration的时间里向右移动一定距离
这道题之前有看到过面经但是找不到答案,最后用requestAnimationFrame写的,
但面试官不是很满意,问了很多follow up question,比如为什么要写这种方式,还有哪种方式可以实现,它们之间的trade off是什么等等
原帖链接: https://www.1point3acres.com/bbs/thread-805214-1-1.html
四 【render】
Given a string and a style array render HTML pretty much like a rich text editor.
For example: 'Hello, world', [[0, 2, 'i'], [4, 9, 'b'], [7, 10, 'u']] Output: <i>Hel</i>l<b>o, w<u>orl</u></b><u>d</u>
|