Javascript Arrays | Javascript Tutorial For Beginners

Поділитися
Вставка
  • Опубліковано 2 січ 2025

КОМЕНТАРІ • 75

  • @commentslol6549
    @commentslol6549 3 роки тому +44

    This man is like a coding Bob Ross, just saved me from a mental breakdown

  • @developedbyed
    @developedbyed  6 років тому +45

    Back home! A few more videos and we will wrap up this series and go back to doing some practical projects!

  • @xQryptic
    @xQryptic 5 років тому +85

    list = ["Videos!", "Love ", "Your ", "I "]
    console.log(list[3] + list[1] + list[2] + list[0])

    • @234azam
      @234azam 5 років тому +1

      +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😊

  • @sh4kirrr448
    @sh4kirrr448 4 роки тому +14

    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!

  • @ciceroaraujo5183
    @ciceroaraujo5183 4 роки тому +12

    Your energy is always amazing.

  • @aster6000
    @aster6000 2 роки тому +4

    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!

  • @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

  • @elpheno
    @elpheno 5 років тому +28

    it's easy and funny to learn with you!

  • @quentinparker4504
    @quentinparker4504 Рік тому +2

    Great teacher!!

  • @steveohare4666
    @steveohare4666 4 роки тому +1

    I appreciate how you explain the concepts and define what each element means

  • @Xemtaren
    @Xemtaren 4 роки тому +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??

  • @nadasharif7330
    @nadasharif7330 3 роки тому

    I think this is the best array explanation I have got in my whole live

  • @cgarafulic
    @cgarafulic 4 роки тому +1

    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.

  • @Randomcharacters285
    @Randomcharacters285 3 роки тому

    Brother this is very helpful, I just want you to know your efforts are not wasted, RESPECT.

  • @ecco2735
    @ecco2735 5 років тому +6

    what theme are you using in here? btw, i love your videos!!! thank you!

  • @emmanuelchijioke8904
    @emmanuelchijioke8904 2 роки тому

    the smile alone, made me understood it😊, nice job

  • @OlesJL
    @OlesJL 2 роки тому +1

    I like your vibe

  • @xecthecoder4824
    @xecthecoder4824 3 роки тому +1

    Hey Edwin I will like to correct your pronounciation of the word "schedule" it is pronounced as"sha + dule" thank you

  • @acap1866
    @acap1866 3 роки тому

    I love the way you teach, you always smiling!

  • @erdemoz2187
    @erdemoz2187 4 роки тому +1

    These series are so good. Great explanations!

  • @tarunteja9622
    @tarunteja9622 3 роки тому +4

    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

  • @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

  • @BrazillianFOsho
    @BrazillianFOsho Рік тому

    Your videos are so helpful!!!!

  • @itsmeingoa
    @itsmeingoa 3 роки тому

    I just enjoy the way this guy teaches. He is must subscride.

  • @madsoussi9863
    @madsoussi9863 4 роки тому

    LOVE HOW YOU EXPLAIN THIS STUFF !! thanks alot !

  • @Drakan21
    @Drakan21 4 роки тому +1

    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.

  • @fernandosobenes5387
    @fernandosobenes5387 4 роки тому +1

    Hi Ed. Thank you so much for your tutorials. Your videos really are well explained and easy to understand... Have a nice day!!!

  • @yousefshadi957
    @yousefshadi957 2 роки тому

    Thanks for such such a masterpiece video.

  • @pingu4396
    @pingu4396 3 роки тому

    Thanks man. Love your vibe.

  • @MrFibbanacci
    @MrFibbanacci 5 років тому

    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.

  • @atlantic_love
    @atlantic_love 5 місяців тому +1

    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?

  • @w3raja740
    @w3raja740 4 роки тому

    You r a great teacher..

  • @JusQuelle
    @JusQuelle 3 роки тому

    this was perfect and well explained. thank you!

  • @PS-le4mf
    @PS-le4mf 5 років тому +2

    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.

  • @מאירכהן-ח3צ
    @מאירכהן-ח3צ 9 місяців тому

    You’re awesome thank you

  • @sydneydorsey8168
    @sydneydorsey8168 Рік тому

    love ur videos

  • @peirdenaasem
    @peirdenaasem 5 років тому

    Great teacher!! thank you

  • @AmericanCube
    @AmericanCube 2 роки тому

    can you add two same things to an array?

  • @keduslejiyared8701
    @keduslejiyared8701 4 роки тому

    love ur vidoes
    dev ed

  • @_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

  • @foo2hp
    @foo2hp 3 роки тому

    hey wait in minute! We create constant value but we can change it. How did happen? I am confused.

  • @john3yoo
    @john3yoo 5 років тому

    what is the song at the beginning of the video? btw, love your vids.

  • @weisdev
    @weisdev 2 роки тому

    Lol, you are funny. I am enjoying my classes.😁

  • @Abinesh17
    @Abinesh17 2 роки тому

    Vanakam da mapla Tamilnadu la irudhu ♥️

  • @aisivan
    @aisivan 4 роки тому

    that's great I got the points here

  • @glengikonyo8433
    @glengikonyo8433 3 роки тому

    love how he makes learning his tutorial humurous😂

  • @nejan_s
    @nejan_s 3 роки тому

    Thx 🙏

  • @antoniogross2266
    @antoniogross2266 2 роки тому

    So variables can't have spaces unless they are arrays??

  • @abirulezz
    @abirulezz 5 років тому +1

    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);

  • @TheAutumn90
    @TheAutumn90 3 роки тому

    What is this intro song called?

  • @Archbsp
    @Archbsp 2 роки тому

    helpful

  • @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?

  • @kokapapaskua7192
    @kokapapaskua7192 4 роки тому

    heloo do you have jquery course

  • @asadkhan701
    @asadkhan701 5 років тому

    It's very similar to python. Isn't it?

  • @coolsweatz
    @coolsweatz 4 роки тому

    Like just for that intro

  • @gavr1loo
    @gavr1loo 5 років тому

    What, no intro-tricks? Dissapointed...:D

  • @Archbsp
    @Archbsp 2 роки тому

    from NGR

  • @felixlopezgarcia3342
    @felixlopezgarcia3342 Рік тому +1

    I’m sure that you dont have legs

  • @mekdesmenji7049
    @mekdesmenji7049 2 роки тому +1

    more learn before teach

  • @sara1010
    @sara1010 3 роки тому

    Too much emotions, just get to the points ffs