Is array = [] equal to array = [[]] - Javascript Array Operation

Javascript examples for Array Operation:Array Nest

Description

Is array = [] equal to array = [[]]

Demo Code

ResultView the demo in separate window

<html lang="en">
   <head></head>
   <body translate="no"> 
      <script>
var thesesArrays = []; // an empty array
var sometheses = ["abc", "Tech", "my"];
thesesArrays.push(sometheses);/*from  w w  w .  ja  v a2 s  .c  o  m*/
console.log(thesesArrays[0]);
console.log(thesesArrays);
    
      </script>  
   </body>
</html>

Related Tutorials