Home > Common Problem > body text

What are non-null basic data types?

尊渡假赌尊渡假赌尊渡假赌
Release: 2023-11-07 10:06:11
Original
1030 people have browsed it

In JavaScript, non-null basic data types refer to all basic data types except "null" and "undefined": 1. Strings representing text data types; 2. Including integers and floating point numbers Number; 3. Boolean value representing logical true or false; 4. New symbols added in ES6.

What are non-null basic data types?

# Operating system for this tutorial: Windows 10 system, Dell G3 computer.

In JavaScript, non-null basic data types refer to all basic data types except null and undefined.

  1. String: represents the type of text data, for example: "Hello, World!".

  2. Numbers: including integers and floating point numbers, for example: 42, 3.14.

  3. Boolean value: represents logical truth or falsehood, that is, true or false.

  4. Symbol: ES6 new data type, representing unique values.

When we talk about non-null basic data types, it means that the values ​​stored in variables or constants of these data types are not null or undefined. These data types can be stored and transferred directly without additional processing.

It should be noted that although non-null basic data types exclude null and undefined, in some cases, we may treat null and undefined as special "null" values ​​used to represent missing or uninitialized state.

The above is the detailed content of What are non-null basic data types?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!