Array values assign and update with array index - Javascript Array Operation

Javascript examples for Array Operation:Array Index

Description

Array values assign and update with array index

Demo Code

ResultView the demo in separate window

<html>
   <head></head>
   <body> 
      <script>
var a = [1, 2, 3];
console.log("first");
console.log(a);
console.log("second");
a[0] = '11';
a = ['a', 'b', 'c'];
console.log("third");

      </script>  
   </body>//from  w ww.j  a  v  a 2 s .  c  om
</html>

Related Tutorials