JS basis - the basic data types

Js norm in most of the other languages ​​or with almost 

For example, the file name is case-sensitive notes, etc., etc. 

Basic data types

1, 2, 3 strings, Boolean 4, undefined 5 null

Variables are typically used to store variable data 

  Declare variables initialize variables

There are var (default) let const

Basic operators 

+    -        *        /    
++   --      % 

There are many possible in parentheses operator when the operator instead of relying on the priority set to the code execution

Order so that we can have a better code readability

View type operator

typeof

 

Overview

Anything that does not belong to the basic types of objects belong

 

Numeric data type may include a positive or negative integer floating point store sixteen octal special index value NaN Infinity -Infinity

 

String type is stored all characters between a pair of quotes

 

Only one type of value null null

 

Boolean type only two true false

 

Only one undefined undefined

 

Nine false values ​​,,,,,,,,,,,,,,,,,

 

Guess you like

Origin www.cnblogs.com/ATnTention/p/11374586.html