A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/javascript/null below:

null · WebPlatform Docs

null Summary

null is used to indicate that a variable does not have a value.

Syntax
null
Examples

This example shows the difference between null and undefined.

var foo; // undefined, there is no value assigned
var bar = null; // null, states that there is no value
Notes

null is the only value of the Null type

null vs. undefined

null can be assigned to a variable to represent no value.

undefined means a value is declared but not initialized, it doesn’t have a value assigned to it.

Other than that, null is an object, while undefined is a type.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4