The JavaScript keyword null is a special value that indicates "no value." Technically speaking, null is a value of object type, so when a variable holds the value null, you know that it does not contain a valid object or array. For that matter, you also know that it does not contain a valid number, string, Boolean or function.
C and C++ programmers should note that null in JavaScript is not the same as 0 as it is in those languages. In certain circumstances, null will be converted to a 0, but the two are not equivalent.
file: /Techref/language/java/script/definitive/ch03_08.htm, 3KB, , updated: 2019/10/14 15:00, local time: 2024/11/22 02:08,
3.137.169.14:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://techref.massmind.org/techref/language/java/script/definitive/ch03_08.htm"> [Chapter 3] 3.8 Null</A> |
Did you find what you needed? |
Welcome to massmind.org! |
Welcome to techref.massmind.org! |
.