• Skip to main content
  • Skip to search
    • Technologies Overview
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • HTTP
    • APIs
    • Browser Extensions
    • MathML
    • Learn web development
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • Game development
    • ...more docs
    • Send Feedback
    • Contribute to MDN
    • Report a content issue 🌐
    • Report a platform issue 🌐
  1. Từ điển thuật ngữ
  2. undefined
  • Change language
  • View in English

Table of contents

  • Example
  • Tìm hiểu thêm

undefined

undefined là một giá trị nguyên thủy được gán tự động cho các biến vừa được khai báo hoặc cho các đối số chính thức không có đối số thực tế.

Example

var x; // tạo một biến nhưng không gán giá trị

console.log("x's value is", x) //logs "x's value is undefined"

Tìm hiểu thêm

Kiến thức phổ thông

  • Undefined value on Wikipedia

Technical reference

  • JavaScript data types and data structures

Last modified: Nov 5, 2020, by MDN contributors

Change your language
  • Web Technologies
  • Learn Web Development
  • About MDN
  • Feedback
  • About
  • MDN Web Docs Store
  • Contact Us
  • Firefox

MDN

Mozilla

© 2005-2021 Mozilla and individual contributors. Content is available under these licenses.

  • Terms
  • Privacy
  • Cookies