# Daily-Interview-Question
**Repository Path**: huarxia/Daily-Interview-Question
## Basic Information
- **Project Name**: Daily-Interview-Question
- **Description**: 我是木易杨,公众号「高级前端进阶」作者,每天搞定一道前端大厂面试题,祝大家天天进步,一年后会看到不一样的自己。
- **Primary Language**: JavaScript
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2020-10-26
- **Last Updated**: 2020-12-18
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# Daily-Interview-Question
加入前端「壹题」学习小组,尽在公众号「高级前端进阶」,进阶共勉之!
工作日每天一道大厂前端面试题,一年后再回头,会感谢曾经努力的自己!
## 今日面试题
2019-07-09
> 第 101 题:修改以下 print 函数,使之输出 0 到 99,或者 99 到 0
>
> 要求:
>
> 1、只能修改 `setTimeout` 到 `Math.floor(Math.random() * 1000` 的代码
>
> 2、不能修改 `Math.floor(Math.random() * 1000`
>
> 3、不能使用全局变量
>
> ```js
> function print(n){
> setTimeout(() => {
> console.log(n);
> }, Math.floor(Math.random() * 1000));
> }
> for(var i = 0; i < 100; i++){
> print(i);
> }
> ```
公司:头条
解析:[第 101 题](https://github.com/Advanced-Frontend/Daily-Interview-Question/issues/158)
## 本周汇总
2019-07-08
> 第 100 题:请写出如下代码的打印结果
>
> ```js
> function Foo() {
> Foo.a = function() {
> console.log(1)
> }
> this.a = function() {
> console.log(2)
> }
> }
> Foo.prototype.a = function() {
> console.log(3)
> }
> Foo.a = function() {
> console.log(4)
> }
> Foo.a();
> let obj = new Foo();
> obj.a();
> Foo.a();
> ```
公司:京东
解析:[第 100 题](https://github.com/Advanced-Frontend/Daily-Interview-Question/issues/155)
## 历史汇总
- [前端面试题及答案汇总](https://github.com/Advanced-Frontend/Daily-Interview-Question/blob/master/datum/summary.md)
## 半月刊
- [【半月刊 1】前端高频面试题及答案汇总](https://juejin.im/post/5c6977e46fb9a049fd1063dc)
- [【半月刊 2】前端高频面试题及答案汇总](https://juejin.im/post/5c7bd72ef265da2de80f7f17)
- [【半月刊 3】前端高频面试题及答案汇总](https://juejin.im/post/5c9ac3f66fb9a070e056718f)
- [【半月刊 4】前端高频面试题及答案汇总](https://juejin.im/post/5cb3376bf265da039c0543da)
## 交流
进阶系列文章汇总如下,觉得不错点个 star,欢迎 **加群** 互相学习。
> [https://github.com/yygmind/blog](https://github.com/yygmind/blog)
我是木易杨,公众号「高级前端进阶」作者,跟着我**每周重点攻克一个前端面试重难点**。接下来让我带你走进高级前端的世界,在进阶的路上,共勉!
