JavaScript tutorial: null type

Source: Internet
Author: User
Tags define object empty header min reference variable

Article Introduction: The main purpose of our null reference here is to say that if we define a variable that will be used to store the object in the future, then we'd better initialize the variable to null, so as long as it detects null value to see if the variable has already saved a reference to an object.

A null type is the second data type with only one value, its value is null, and the null value represents an empty object pointer, so it is an object to detect null using the TypeOf operator. Element
Font
Font-family
Font-size
Font-style
Font-variant
Font-weight
Letter-spacing
Line-height
Text-decoration
Text-align
Text-indent
Text-transform
White-space
Word-spacing
Color
Background
Bg-attachment
Bg-color
Bg-image
Bg-position
Bg-repeat
Box
Width
Height
Border-top
Border-right
Border-bottom
Border-left
Margin
Padding
Max-height
Min-height
Max-width
Min-width
Outline-color
Outline-style
Outline-width
Positioning
Position
Top
Bottom
Right
Left
Float
Display
Clear
Z-index
List
List-style-image
List-style-type
List-style-position
Table
Vertical-align
Border-collapse
Border-spacing
Caption-side
Empty-cells
Table-layout
Effects
Text-shadow
-webkit-box-shadow
Border-radius
Other
Overflow
Cursor
Visibility
The main purpose of our null reference here is to say, if we define a variable that will be used to store the object in the future, then we'd better initialize the variable to null, so that it's possible to know whether the variable has saved a reference to an object as long as it detects a null value. var car = null; if (car!= null) {}

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.