笔者受网课启发,想要将面试题考点、JS基础知识、实践应用结合起来,形成优良的思维方式。将学习过程纪录在此。
本文将按照,题目,知识,思考三部分的结构进行
- JS变量及内置对象
- typeof能得到的数据类型
考点:JS基础数据类型
- typeof能得到的数据类型
typeof 123; //number
typeof "abc"; //string
typeof true; //boolean
typeof a; //undefind
typeof {}; //object
typeof []; //object
typeof null; //object
typeof function(){}; //function