typeof

  1. let num = 12;
  2. let str = '中华人民共和国';
  3. let boo = true;
  4. let und = undefined;
  5. let nul = null;
  6. console.log(num); // number
  7. console.log(str); // string
  8. console.log(boo); // boolean
  9. console.log(und); // undefined
  10. console.log(nul); // object