Javascript

Topic: Js Array

How to Access an Array?

You refer to an element in an array by referring to the index number.This statement access the value of the first element in myCars:var name=myCars[0];This statement modifies the first element in myCars:myCars[0]="Opel";

Browse random answers: