校招 未知部门 / 前端 / 一面/二面

[面试日期] 2024-04-18 [面试时长] 40min
[学校背景] 西北大学 | 211 [学历背景] 未知
[发布人] 面试之星官方收录
<h2>滴滴日常一二面</h2> <h3>滴滴</h3><p>一面(40min)</p><p>自我介绍</p><p>用过react吗?</p><p>vue生命周期</p><p>路由的两种模式,原理</p><p>http缓存 和 浏览器缓存</p><p>宏任务和微任务</p><p>有没有写过node?</p><p>讲一下webpack</p><p>有做过什么webpack优化?</p><p>写两道题</p><p>去重value</p><pre> let arr = [ { key: &quot;x&quot;, value: 2 }, { key: &quot;x&quot;, value: 2 }, { key: &quot;x&quot;, value: 3 }, ]; </pre><p>去重value 包括children里的value</p><pre> let arr = [ { key: &quot;x&quot;, value: 2, children: [ { key: &quot;x&quot;, value: 4 }, { key: &quot;x&quot;, value: 4 }, ], }, { key: &quot;x&quot;, value: 2 }, { key: &quot;x&quot;, value: 3 }, ]; </pre><pre> 找出出现次数最多的 字母和字符数量 let str = &#x27;abbbccccc&#x27; result:[5, c] </pre><p>反问</p><p><strong>二面</strong></p><p>去除出现次数最少的字母</p><pre> ababac --&gt; ababa aaabbbcceeff --&gt; aaabbb aabbccceeefffff --&gt; ccceeefffff </pre><pre> let date1 = { id: 1, date: new Date(100000) }; let date4 = { id: 4, date: new Date(100001) }; let date2 = { id: 2, date: new Date(200000) }; let date3 = { id: 3, date: new Date(300000) }; 1.对象排序 按date 2.对象排序 不允许用sort </pre><pre> 原生js 删除dom 原生js 修改样式 </pre><a>#我的实习求职记录#</a>
AI 推荐面试题