JavaScript Tutorial For Beginners #26 - Arrays

preview_player
Показать описание
Hey guys, in this JavaScript tutorial I wanted to show you how to make arrays and how we store pockets of informations in them. Arrays can be (virtually) endless in the amount of pockets they can hold, certainly enough for any client side script.

The biggest indicator someone is using an array is the square bracket notation - [ ].

You can also create arrays using the 'new' keyword, but I prefer to use the square bracket method, just because it's quicker and easier to assign values straight away.

As always, ask away with any questions :).

========== JavaScript for Beginners Playlist ==========

========== CSS for Beginners Playlist ==========

========== HTML for Beginners Playlist ==========

========== The Net Ninja ============

========== Social Links ==========

Рекомендации по теме
Комментарии
Автор

I have been using your online tutorials to compliment an online course I am taking on Coursera. So far I have watched your HTML, CSS, and now JS Your tutorials are amazingly put together and often have taught me something new and or helped solidify information by showing a different example or just hearing your way of explaining. For that sir, thank you!

rosjio
Автор

Nice video, but i think you should have talked about push(), pop(), shift() and unshift() methods too as they are often used on arrays

adeolaidowu
Автор

Thank you so much for making this tutorial. It explains all the basics very well. I'm finding it very insightful.

aryapandey
Автор

I did not understand the difference between logging an entry in the console and executing a statement or assigning values to a variable in the console and what could possible be the use of logging a value .Could you also please explain the use of console, since the output of any web based program is the webpage itself.Your lectures are great btw !!!Thanks in advance .

Iamhomkar
Автор

you didnt put the link in the description with the list of other arrays...

teodorastefanovska
Автор

Hi Ninja, I go through each of your tutorial and love them a lot. One question here is while sorting the array why boolean value came first than string, you didn't provide any explanation for that or i missed anything ? is it because of datatype or what ?

shraddhapaliwal
Автор

What is the difference between creating an array using new operator and without using new operator ?

tejasjoshi
Автор

Hello Net Ninja, is there a reason you didn't talk about push?
as in ->
myArraw.push("hello")

chriszuidema
Автор

nice video but how does all this affect a website

richie
Автор

var myarray = new Array(5);
what does that 5 signify?

ajitsinghal
Автор

hey man, what ever u r doing is good but don not do in console try to do in code editor beginners does not no the process of console ... ok

mohanj