fork(1) download
  1. let hoTen = "Nguyễn Văn A";
  2. let tuoiNguoi = 25;
  3. let laSinhVien = true;
  4. let chuaCoGiaTri;
  5. let giaTriNull = null; // Lưu ý: typeof null trả về 'object' - đây là một "lỗi lịch sử" của JavaScript
  6.  
  7. console.log(typeof hoTen); // Output: string
  8. console.log(typeof tuoiNguoi); // Output: number
  9. console.log(typeof laSinhVien); // Output: boolean
  10. console.log(typeof chuaCoGiaTri); // Output: undefined
  11. console.log(typeof giaTriNull); // Output: object (Hãy nhớ điều này!)
  12.  
Success #stdin #stdout 0.03s 16736KB
stdin
Standard input is empty
stdout
string
number
boolean
undefined
object