百度春招前端一面

介绍自己

怎么接触的前端,怎么学习的前端

实习项目相关,背景痛点,技术难点

执行流程题

var name = 'global';
function test(){
  console.log(name);//undifined
  var name = 'local';
}
test();
var name = "mary";
function hello() {
  console.log(name);
}
function hello1() {
  var name = "bob";
  hello();
}
function hello2() {
  var name = "john";
  function hello(){
    console.log(name);
  }
  hello();
}

hello(); // mary
hello1(); // mary
hello2(); // john

//浏览器环境
var a = 20;

function test() {
  this.a = 10;
  setTimeout(() => {
    console.log(this.a);
    setTimeout(function () {
      var a = 30;
      console.log(this.a);
    }, 100);
  }, 100);
}

test(); // 10 10
let func = new test();// 10 10

事件循环输出题

手写:可以控制层级的flat方法

全部评论
佬后续怎么样了
点赞 回复 分享
发布于 昨天 20:13 四川
佬,有消息吗
点赞 回复 分享
发布于 03-16 16:59 广东

相关推荐

昨天 23:37
已编辑
门头沟学院 前端工程师
1.     盒模型2. ​    position属性3. ​    absolute 和 relative 区别4. ​    项目响应式布局如何实现5. ​    rem 和 em 区别6. ​    http状态码7. ​    网络缓存8. ​    浏览器存储9. ​    ts 的优点10. ​    js 数据类型11. ​    类型判断方法12. ​    原型链的应用场景13. ​    vue 生命周期分个类描述14. ​    请求方法放在哪个生命周期?15. ​    watch 和 computed 区别16. ​    组件间通信17. ​    项目难点18. ​    前后端沟通有没有遇到问题19.let obj = { a: 0 };function test(obj) {obj.a = 1;obj = { a: 2 };obj.b = 3;}test(obj);console.log(obj); // 输出20.    事件循环输出题21.    算法:最长不含重复字符的子字符串帮同学贴一个 米哈游校招内推链接~内推码:052BT投递链接:https://jobs.mihoyo.com/?sharePageId=121176&recommendationCode=052BT&isRecommendation=true#/campus/position
查看21道真题和解析
点赞 评论 收藏
分享
评论
4
10
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务