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 :).
SUBSCRIBE TO CHANNEL – https://www.youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg?sub_confirmation=1
========== JavaScript for Beginners Playlist ==========
========== CSS for Beginners Playlist ==========
========== HTML for Beginners Playlist ==========
========== The Net Ninja ============
For more front-end development tutorials & to black-belt your coding skills, head over to – https://www.youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg or http://thenetninja.co.uk
========== Social Links ==========
Twitter – @TheNetNinja – https://twitter.com/thenetninjauk
Original source
15 responses to “JavaScript Tutorial For Beginners #26 – Arrays”
your screen is bluur
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 ?
Nice video, but i think you should have talked about push(), pop(), shift() and unshift() methods too as they are often used on arrays
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array
4:23 also another weird part. You can have methods as they are on their own, but they can also be an object. So there's using it both regularly and as object oriented?
2:45 but how does this fit into scope. Like how to make the array Boolean value true in some scope but false in others, how would that fit into code? Is one of the harder parts of learning JS
Mmmmmm. Prok.
What is the difference between creating an array using new operator and without using new operator ?
http://www.w3schools.com/js/js_array_methods.asp
So far so good. I haven't been exposed to any JavaScript prior to your tutorials and these are going great. I've created a small program to practice everything learnt up till now: https://pastebin.com/3if63Phf
Just paste that into some <script></script> tags within a html document and have a look!
Let me know what you think of it 🙂
where is the links ??? you said you will put links for arrays!! and before this video too you said you will put the links for strings methods ! plzz put it
And thank you for your job I'm really learning ! and Understanding
Hello Net Ninja, is there a reason you didn't talk about push?
as in ->
myArraw.push("hello")
Missing link about the strings again?
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 .
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 playlist….. 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!