创维-前端笔试-3.21晚
单选+多选+简答
单选里有很多很多给代码说输出,都不怎么会
被给代码说输出狠狠创s的一次笔试,累了 毁灭吧( ̄ε(# ̄)
以下结果在codepen里运行返回
console.log(2 ** 3 **2) // 512
Promise.reject(1) .then(console.log) .catch(console.log) .then(console.log) // 1 undefined
console.log((true + false) > 2 + true) //false
var foo = function foo (){ console.log(foo === foo) } foo() // true
console.log(Array.apply(null, {length: 1})) // [undefined]
Promise.resolve(1) .then(2) .then(Promise.resolve(3)) .then(console.log) // 1
function test(a) { const fn = (a) =>{ console.log(arguments[0]); console.log(this.a); } fn(1); } obj = { a: 2 } test.call(obj, 3); // 3 2
简答
都是基础八股
script script async defer
浏览器缓存
数组方法find every some reduce map的用法
元素居中
斐波那契数组
最后一个开放性论述:对一个开发类似ElementUI和Ant Design这样的组件库有什么想法?
#笔经##前端#