07-4- about the object

<! DOCTYPE HTML> 
<HTML lang = "EN"> 
<head> 
    <Meta charset = "UTF-. 8"> 
    <title> the Title </ title> 
</ head> 
<body> 
<Script> // basic data type ( stack memory) is based on the comparison value // Number String Boolean undefined null Symbol // reference data types (heap) is the address of the object comparison // Object 
    the let a = [10 ]; 
    the let B = [10 ];
     // the let a = b; // b gave such a addresses 
    the console.log (a == b); // to false addresses are different 
    the console.log (a === b); // to false addresses are different 
    the console.log (a [ 0 ] === b [0]);// true
    
    
    
    



    the console.log ( to false == [0]); // to true these do not consider the 
</ Script> 
</ body> 
</ HTML>

 

Guess you like

Origin www.cnblogs.com/zhangyu666/p/11479557.html