java-script:null-vs-undefined
Differences
This shows you the differences between two versions of the page.
java-script:null-vs-undefined [2023/08/10 02:10] – created odefta | java-script:null-vs-undefined [2023/08/10 03:53] (current) – odefta | ||
---|---|---|---|
Line 8: | Line 8: | ||
It is an assignment value that represents the ;;; | It is an assignment value that represents the ;;; | ||
You can explicitly assign null to a variable to indicate that the variable should have no value. \\ | You can explicitly assign null to a variable to indicate that the variable should have no value. \\ | ||
- | Comparing with **loose equality | + | Comparing with **loose equality ==, null is equal to undefined.** |
===== Undefined ===== | ===== Undefined ===== |
java-script/null-vs-undefined.1691622656.txt.gz · Last modified: 2023/08/10 02:10 by odefta