Javascript tutorial - 15 - Arrays
Dave Partner

Javascript tutorial - 15 - Arrays

  • 0 Replies
  • 286 Views

0 Members and 1 Guest are viewing this topic.

*

Offline Dave Partner

  • Administrator
  • Full Member
  • *****
  • 116
    • View Profile
Javascript tutorial - 15 - Arrays
« on: November 15, 2016, 03:08:10 AM »
&index=14



<!DOCTYPE html>
<html>
<head>
   
</head>


<body>
   <script type="text/javascript">
      //arrays
      //special kind objects
      
      
      //using object literal
      var ourNumbers = [2, 59, 659, 5524, "Dave", "Partner" ];
      
      var ourObject = {firstname: "Dave", middlename: "Partner", age: "300"}; //object literal
      
       ourNumbers['lastname'] = "Bower";
       ourNumbers['age'] = "39";
       ourNumbers['town'] = "whatever";
      
      
      
      //difference between
       document.write(ourObject.length);
        ///document.write(ourObject[2]);
        
        
concat
every   
filer
forEach
join
indexOf
lastIndexOf
map
pop
push
reverse
shift
slice
some
sort
splice
toSource
toString
unshift
valueOf
   </script>
</body>
</html>