
面试题
菜得你想哭
好好学习,天天向上
展开
-
[JS][面试题]serTimeout和Promise
console.log("start"); setTimeout(() => { console.log("timer1"); new Promise(function (resolve) { console.log(" promise start "); resolve(); }).then(function () { console.log("promise1"); }); }, 0); setTimeout(()原创 2022-02-27 10:31:18 · 314 阅读 · 0 评论 -
[JS][面试题]typeof
typeof 1 === '' typeof '1' === '' typeof true === '' typeof null === '' typeof undefined === '' typeof function() {} ==='' typeof 1 === ""; console.log(typeof 1); //number console.log(typeof 1 == ""); //false console.log(typeof 1 === ""); //false typeof "原创 2022-02-27 10:27:14 · 480 阅读 · 0 评论