Javascript Arrays | Javascript Tutorial For Beginners

  Рет қаралды 92,627

developedbyed

developedbyed

Күн бұрын

Check out my courses and become more creative!
developedbyed.com
Javascript Arrays | Javascript Tutorial For Beginners
In this video series we are going to learn modern javascript from scratch. This video is recommended for anyone wanting to learn javascript the modern way with ES2015. No previous programming knowledge is required, so this video series will help you learn javascript as your first programming language.
We will also cover the basics of arrays and where to use them. The popular ones include using pop method to remove a value from the end of the array, push method to add a value to the end of the array. Shift is used to remove a value from the beginning of the array and unshift adds a value.
We are also going to take a look on what types of values we can store inside the array. How to access each value by its index and modify them as well.
Things covered in this video:
Basics of javascipt arrays.
How to add and remove values inside of an array.
How to modify a specific value of an array.
How to access each value.
📔 Materials used in this video:
VSCode: code.visualstu...
🛴 Follow me on:
Twitter: / deved94
Github: github.com/Dev...

Пікірлер: 75
@developedbyed
@developedbyed 5 жыл бұрын
Back home! A few more videos and we will wrap up this series and go back to doing some practical projects!
@RedditFirefighter
@RedditFirefighter 3 жыл бұрын
yep!
@xQryptic
@xQryptic 5 жыл бұрын
list = ["Videos!", "Love ", "Your ", "I "] console.log(list[3] + list[1] + list[2] + list[0])
@234azam
@234azam 5 жыл бұрын
+1
@otto5556
@otto5556 3 жыл бұрын
@SOK PAGNAVATH i dont think thats the point of the comment
@soewaiyanaung9168
@soewaiyanaung9168 3 жыл бұрын
you forgot semicolon;
@AdityaSingh-ih8sx
@AdityaSingh-ih8sx 3 жыл бұрын
@SOK PAGNAVATH thats not the point vro
@abibatsalaudeen7539
@abibatsalaudeen7539 3 жыл бұрын
I don't why i love Dev Ed His HTML and CSS made me develop fast. Now am on JavaScript😊
@commentslol6549
@commentslol6549 3 жыл бұрын
This man is like a coding Bob Ross, just saved me from a mental breakdown
@sh4kirrr448
@sh4kirrr448 4 жыл бұрын
You're so kind bro, your teaching style is awesome! I dont really leave comments or sub to anyone but you're the best! Best of luck!
@מאירכהן-ח3צ
@מאירכהן-ח3צ 7 ай бұрын
So right
@ciceroaraujo5183
@ciceroaraujo5183 4 жыл бұрын
Your energy is always amazing.
@quentinparker4504
@quentinparker4504 Жыл бұрын
Great teacher!!
@aldousparker
@aldousparker Жыл бұрын
very good
@aster6000
@aster6000 2 жыл бұрын
Man you are a godsend! Super informative and fun, i love how you'll acknowledge things that are a little hard to get used to or don't make that much sense because someone like me, i will only fully understand something if i know WHY it is that way. I can't just put random info in my brain. Having someone like you say "yea this is kinda weird but we'll have to get used to it" is really reassuring and helps me memorize things so much. I got a school assignment which i have to learn JS for and to be honest, i'd rather be doing anything else. But somehow through your videos, i think i'm actually looking forward to it now! Thanks!
@elpheno
@elpheno 5 жыл бұрын
it's easy and funny to learn with you!
@steveohare4666
@steveohare4666 3 жыл бұрын
I appreciate how you explain the concepts and define what each element means
@nadasharif7330
@nadasharif7330 3 жыл бұрын
I think this is the best array explanation I have got in my whole live
@ecco2735
@ecco2735 5 жыл бұрын
what theme are you using in here? btw, i love your videos!!! thank you!
@Randomcharacters285
@Randomcharacters285 3 жыл бұрын
Brother this is very helpful, I just want you to know your efforts are not wasted, RESPECT.
@OlesJL
@OlesJL 2 жыл бұрын
I like your vibe
@Xemtaren
@Xemtaren 3 жыл бұрын
I have never seen you answering questions, but will you or anyone tell me how to add elements not the beginning or the end by push and unshift , to the middle for example??
@priyanzhu
@priyanzhu 2 жыл бұрын
5:24 ! The more efficient way :- This is our array => const arr = [ 1, 2, 3 ]; You know you gotta count them from 0 that means 0 corresponds to 1! The first element(1). If you wanna select 1 then you just can input the value i.e element.at(); The whole thing is gonna look like: // Input const arr = [1, 2, 3].at(0); console.log(arr); // Output = 1
@samuelfortune1064
@samuelfortune1064 2 жыл бұрын
I really love watching your videos they have been so helpful to me so far since I found you. Thank you so much
@tarunteja9622
@tarunteja9622 3 жыл бұрын
Thank you Ed, for your wonderful tutorial. I have a query: How to remove the elements which are in the middle of the array?
@TerraElfi
@TerraElfi 2 жыл бұрын
you can use splice() method
@acap1866
@acap1866 3 жыл бұрын
I love the way you teach, you always smiling!
@emmanuelchijioke8904
@emmanuelchijioke8904 2 жыл бұрын
the smile alone, made me understood it😊, nice job
@itsmeingoa
@itsmeingoa 3 жыл бұрын
I just enjoy the way this guy teaches. He is must subscride.
@cgarafulic
@cgarafulic 4 жыл бұрын
Ted, array starts at zero because the memory location of the whole array is the same of it's first element when the first element is zero. If it would start with one, the memory location for one is different than the array as a whole.
@xecthecoder4824
@xecthecoder4824 3 жыл бұрын
Hey Edwin I will like to correct your pronounciation of the word "schedule" it is pronounced as"sha + dule" thank you
@fernandosobenes5387
@fernandosobenes5387 4 жыл бұрын
Hi Ed. Thank you so much for your tutorials. Your videos really are well explained and easy to understand... Have a nice day!!!
@madsoussi9863
@madsoussi9863 3 жыл бұрын
LOVE HOW YOU EXPLAIN THIS STUFF !! thanks alot !
@erdemoz2187
@erdemoz2187 4 жыл бұрын
These series are so good. Great explanations!
@BrazillianFOsho
@BrazillianFOsho Жыл бұрын
Your videos are so helpful!!!!
@atlantic_love
@atlantic_love 3 ай бұрын
How can I pass an array to a function, as a SINGLE argument, and then access the elements of that array from within the function?
@AmericanCube
@AmericanCube Жыл бұрын
can you add two same things to an array?
@pingu4396
@pingu4396 3 жыл бұрын
Thanks man. Love your vibe.
@w3raja740
@w3raja740 4 жыл бұрын
You r a great teacher..
@yousefshadi957
@yousefshadi957 2 жыл бұрын
Thanks for such such a masterpiece video.
@Drakan21
@Drakan21 4 жыл бұрын
This is _not quite as applicable to Javascript_ because it is not a strictly typed language, but it serves to highlight _why_ arrays are indexed from [0] and why it is an (mostly) accepted standard. You may or may not know this, but for education purposes: Array index and [0] : An array (at least in classic programming terms) is allocated in contiguous (one-segment) of memory for whatever you may be storing in that array. So if you have an Array of numbers, the memory for that array will be allocated as: * A 'number' type takes up a certain amount of memory, lets pretend it takes up 32 bits per value (or as an Int32 for someone who may be familiar). Let's say you declare an array as follows: var myArray = [5, 7, 29, 43, 12]; The memory allocated for this array will be * = Now the variable "myArray" classically doesn't actually store the _entire_ array - it is what would be referred to as a *pointer* to the start of the allocated memory for that array. When you ask for an element inside the array (let's say you want the second number) you specify the _offset_ from the beginning of the memory block. An offset of _0_ would give you the first element, and offset of _1_ would give you the second, and so forth. This is calculated when you specify the index as _myArray[1]_ as follows: + ( * ) = In the case of our example it would be + ( * ) = so in our example: myArray[1] = 7 I hope this helps someone who was wondering why [0] is the index. Now this example gets a little wonky once you start realizing that it only applies to strictly typed languages that allocates memory for _types_ and doesn't treat everything in the language as an underlying type of _object_ like many modern programming languages do, but know that behind the scenes, the C/C++/whatever the code base is, is probably doing this; what you're seeing is a representation of this functionality extended into a syntactical standard. Also, you may be thinking "but strings aren't the same size" : this is because string arrays are allocated as two-dimensional arrays of characters.
@MrFibbanacci
@MrFibbanacci 4 жыл бұрын
Why indexes starts from 0? I think it is because they answer the question: on which item am I looking at after the 1st one? (and not: at which item in the order I am looking at [at the moment]). It is just more hardware point of view instread of human one. What I read on Internet is also that the calculations on indexes are easier this way.
@מאירכהן-ח3צ
@מאירכהן-ח3צ 7 ай бұрын
You’re awesome thank you
@JusQuelle
@JusQuelle 3 жыл бұрын
this was perfect and well explained. thank you!
@Abinesh17
@Abinesh17 2 жыл бұрын
Vanakam da mapla Tamilnadu la irudhu ♥️
@sydneydorsey8168
@sydneydorsey8168 Жыл бұрын
love ur videos
@glengikonyo8433
@glengikonyo8433 2 жыл бұрын
love how he makes learning his tutorial humurous😂
@foo2hp
@foo2hp 3 жыл бұрын
hey wait in minute! We create constant value but we can change it. How did happen? I am confused.
@antoniogross2266
@antoniogross2266 2 жыл бұрын
So variables can't have spaces unless they are arrays??
@keduslejiyared8701
@keduslejiyared8701 4 жыл бұрын
love ur vidoes dev ed
@weisdev
@weisdev 2 жыл бұрын
Lol, you are funny. I am enjoying my classes.😁
@aisivan
@aisivan 4 жыл бұрын
that's great I got the points here
@peirdenaasem
@peirdenaasem 5 жыл бұрын
Great teacher!! thank you
@_artemixx
@_artemixx 4 жыл бұрын
Wait, the arrey is supposed to be constent, how is it possible to change it's values? Or it ain't including arreys
@john3yoo
@john3yoo 4 жыл бұрын
what is the song at the beginning of the video? btw, love your vids.
@nejan_s
@nejan_s 2 жыл бұрын
Thx 🙏
@PS-le4mf
@PS-le4mf 5 жыл бұрын
When I think of you moving to your home country, I think of Fez from that 70's show because we never learn his home country.
@fortified001
@fortified001 2 жыл бұрын
helpful
@abirulezz
@abirulezz 5 жыл бұрын
If you are allowed to modify array, then why use const keyword?
@drescherjm
@drescherjm 4 жыл бұрын
I did not understand that either but this link www.w3schools.com/js/js_const.asp explains what const does.
@siham-smash-code
@siham-smash-code 4 жыл бұрын
you have to watch video on variable and understand things (var , let , counts);
@ninjakat88
@ninjakat88 Жыл бұрын
Dumb question #1 I know you can add things to the array using .push, but why not go back to the original array and just add it there?
@TheAutumn90
@TheAutumn90 3 жыл бұрын
What is this intro song called?
@kokapapaskua7192
@kokapapaskua7192 4 жыл бұрын
heloo do you have jquery course
@coolsweatz
@coolsweatz 4 жыл бұрын
Like just for that intro
@asadkhan701
@asadkhan701 5 жыл бұрын
It's very similar to python. Isn't it?
@fortified001
@fortified001 2 жыл бұрын
from NGR
@gavr1loo
@gavr1loo 5 жыл бұрын
What, no intro-tricks? Dissapointed...:D
@felixlopezgarcia3342
@felixlopezgarcia3342 Жыл бұрын
I’m sure that you dont have legs
@mekdesmenji7049
@mekdesmenji7049 2 жыл бұрын
more learn before teach
@sara1010
@sara1010 3 жыл бұрын
Too much emotions, just get to the points ffs
Javascript Dom Manipulation | Javascript Tutorial For Beginners
16:50
developedbyed
Рет қаралды 209 М.
1, 2, 3, 4, 5, 6, 7, 8, 9 🙈⚽️
00:46
Celine Dept
Рет қаралды 63 МЛН
Mia Boyka х Карен Акопян | ЧТО БЫЛО ДАЛЬШЕ?
1:21:14
Что было дальше?
Рет қаралды 9 МЛН
HTMX + GO 15 Minute Quickstart (For Javascript Devs)
16:59
developedbyed
Рет қаралды 27 М.
Javascript Functions & Parameters | Javascript Tutorial For Beginners
14:27
JavaScript Higher Order Functions & Arrays
34:56
Traversy Media
Рет қаралды 987 М.
Javascript Variables & Data Types | Javascript Tutorial For Beginners
15:13
JavaScript Loops Made Easy
10:52
codeSTACKr
Рет қаралды 172 М.
Javascript If Else Statements | Javascript Tutorial For Beginners
11:41
5 JavaScript Concepts You HAVE TO KNOW
9:38
James Q Quick
Рет қаралды 1,4 МЛН
Top 5 Javascript Things You Should Know!
28:18
developedbyed
Рет қаралды 351 М.