JavaScript Tutorial for Beginners - 17 - Arrays

preview_player
Показать описание
In this video we examine arrays.
Рекомендации по теме
Комментарии
Автор

looks like i am learning c or c++ again 😂. BTW great teaching as usual.

himalayagupta
Автор

Sir, Now I am watching your all javascript videos, These are really helpful. But I will be happy if you make a complete website applying javascript. may i expect? a lot of

nazmulhosain
Автор

//if we want to access the all value so change the veriable name all will be displayed
var roads=["stone</br>", "dirt</br>", "cement</br>", "tar</br>", ];
var roadTravelled1=roads[0];
var roadTravelled2=roads[1];
var roadTravelled3=roads[2];
var roadTravelled4=roads[3];
document.write(roadTravelled1, roadTravelled2, roadTravelled3, roadTravelled4);

output:

stone
dirt
cement
tar

saqibomari
Автор

looks like some concepts are similar to VBScript. Also for people new to the concept of index, it starts with 0 and not 1. So the first item in the list will have an index value of 0.

ammarsadeq
Автор

Really cool tutorials. i was wondering ... is it the same without creating the other variable "var roadTravelled", could I just display it by using "document . write(roads[1])" ?

juri
Автор

what happens if I put road[0]= 12, drop the index 1 and then road[2]= 3

abhijitboda
Автор

Why are the push and pop functions not explained?

richardjohnson
Автор

Can you make an array with a predefined length if you don't know yet what exactly goes in it, like you would in java?

davisjameson
Автор

in minecraft every block is assigned a number (that you can use to call it in a command). maybe this is how they did that

inafridge
join shbcf.ru