Javascript Arrays | Javascript Tutorial For Beginners

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ม.ค. 2019
  • 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.visualstudio.com/
    🛴 Follow me on:
    Twitter: / deved94
    Github: github.com/DevEdwin
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 75

  • @commentslol6549
    @commentslol6549 3 ปีที่แล้ว +44

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

  • @xQryptic
    @xQryptic 5 ปีที่แล้ว +83

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

    • @234azam
      @234azam 4 ปีที่แล้ว +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 2 ปีที่แล้ว

      @SOK PAGNAVATH thats not the point vro

    • @abibatsalaudeen7539
      @abibatsalaudeen7539 2 ปีที่แล้ว

      I don't why i love Dev Ed
      His HTML and CSS made me develop fast. Now am on JavaScript😊

  • @developedbyed
    @developedbyed  5 ปีที่แล้ว +44

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

  • @sh4kirrr448
    @sh4kirrr448 3 ปีที่แล้ว +13

    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!

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

  • @ciceroaraujo5183
    @ciceroaraujo5183 4 ปีที่แล้ว +12

    Your energy is always amazing.

  • @steveohare4666
    @steveohare4666 3 ปีที่แล้ว +1

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

  • @erdemoz2187
    @erdemoz2187 4 ปีที่แล้ว +1

    These series are so good. Great explanations!

  • @madsoussi9863
    @madsoussi9863 3 ปีที่แล้ว

    LOVE HOW YOU EXPLAIN THIS STUFF !! thanks alot !

  • @fernandosobenes5387
    @fernandosobenes5387 3 ปีที่แล้ว +1

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

  • @elpheno
    @elpheno 5 ปีที่แล้ว +28

    it's easy and funny to learn with you!

  • @samuelfortune1064
    @samuelfortune1064 ปีที่แล้ว

    I really love watching your videos they have been so helpful to me so far since I found you. Thank you so much

  • @JusQuelle
    @JusQuelle 3 ปีที่แล้ว

    this was perfect and well explained. thank you!

  • @BrazillianFOsho
    @BrazillianFOsho ปีที่แล้ว

    Your videos are so helpful!!!!

  • @acap1866
    @acap1866 3 ปีที่แล้ว

    I love the way you teach, you always smiling!

  • @pingu4396
    @pingu4396 3 ปีที่แล้ว

    Thanks man. Love your vibe.

  • @nadasharif7330
    @nadasharif7330 3 ปีที่แล้ว

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

  • @Randomcharacters285
    @Randomcharacters285 2 ปีที่แล้ว

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

  • @peirdenaasem
    @peirdenaasem 5 ปีที่แล้ว

    Great teacher!! thank you

  • @w3raja740
    @w3raja740 4 ปีที่แล้ว

    You r a great teacher..

  • @user-ry5zu1wo4e
    @user-ry5zu1wo4e 4 หลายเดือนก่อน

    You’re awesome thank you

  • @emmanuelchijioke8904
    @emmanuelchijioke8904 2 ปีที่แล้ว

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

  • @yousefshadi957
    @yousefshadi957 ปีที่แล้ว

    Thanks for such such a masterpiece video.

  • @ecco2735
    @ecco2735 5 ปีที่แล้ว +6

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

  • @sydneydorsey8168
    @sydneydorsey8168 ปีที่แล้ว

    love ur videos

  • @keduslejiyared8701
    @keduslejiyared8701 4 ปีที่แล้ว

    love ur vidoes
    dev ed

  • @itsmeingoa
    @itsmeingoa 2 ปีที่แล้ว

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

  • @quentinparker4504
    @quentinparker4504 ปีที่แล้ว +2

    Great teacher!!

  • @Xemtaren
    @Xemtaren 3 ปีที่แล้ว +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??

  • @aisivan
    @aisivan 4 ปีที่แล้ว

    that's great I got the points here

  • @OlesJL
    @OlesJL 2 ปีที่แล้ว +1

    I like your vibe

  • @nejan_s
    @nejan_s 2 ปีที่แล้ว

    Thx 🙏

  • @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 ปีที่แล้ว

      you can use splice() method

  • @fortified001
    @fortified001 2 ปีที่แล้ว

    helpful

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

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

  • @weisdev
    @weisdev 2 ปีที่แล้ว

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

  • @john3yoo
    @john3yoo 4 ปีที่แล้ว

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

  • @priyanzhu
    @priyanzhu ปีที่แล้ว

    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

  • @melhabip7063
    @melhabip7063 3 ปีที่แล้ว +1

    I love your videos! You're so awkward that it feels like we're friends :D

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

  • @AmericanCube
    @AmericanCube ปีที่แล้ว

    can you add two same things to an array?

  • @TheAutumn90
    @TheAutumn90 3 ปีที่แล้ว

    What is this intro song called?

  • @_artemixx
    @_artemixx 3 ปีที่แล้ว

    Wait, the arrey is supposed to be constent, how is it possible to change it's values? Or it ain't including arreys

  • @xecthecoder4824
    @xecthecoder4824 2 ปีที่แล้ว +1

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

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

  • @Abinesh17
    @Abinesh17 2 ปีที่แล้ว

    Vanakam da mapla Tamilnadu la irudhu ♥️

  • @antoniogross2266
    @antoniogross2266 2 ปีที่แล้ว

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

  • @kokapapaskua7192
    @kokapapaskua7192 4 ปีที่แล้ว

    heloo do you have jquery course

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

  • @abirulezz
    @abirulezz 4 ปีที่แล้ว +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-ln5my
      @siham-ln5my 3 ปีที่แล้ว

      you have to watch video on variable and understand things (var , let , counts);

  • @coolsweatz
    @coolsweatz 3 ปีที่แล้ว

    Like just for that intro

  • @fortified001
    @fortified001 2 ปีที่แล้ว

    from NGR

  • @asadkhan701
    @asadkhan701 5 ปีที่แล้ว

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

  • @ninjakat88
    @ninjakat88 10 หลายเดือนก่อน

    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?

  • @gavr1loo
    @gavr1loo 5 ปีที่แล้ว

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

  • @felixlopezgarcia3342
    @felixlopezgarcia3342 ปีที่แล้ว +1

    I’m sure that you dont have legs

  • @mekdesmenji7049
    @mekdesmenji7049 2 ปีที่แล้ว +1

    more learn before teach

  • @sara1010
    @sara1010 2 ปีที่แล้ว

    Too much emotions, just get to the points ffs