Beginner JavaScript Tutorial – 28 – Arrays




Facebook – https://www.facebook.com/TheNewBoston-464114846956315/
GitHub – https://github.com/buckyroberts
Google+ – https://plus.google.com/+BuckyRoberts
LinkedIn – https://www.linkedin.com/in/buckyroberts
reddit – https://www.reddit.com/r/thenewboston/
Support – https://www.patreon.com/thenewboston
thenewboston – https://thenewboston.com/
Twitter – https://twitter.com/bucky_roberts

Original source


31 responses to “Beginner JavaScript Tutorial – 28 – Arrays”

  1. Thank you for the great job man! It's because of people like you the internet exists!

    I tried other tutorials, SoloLearn, CodeAcademeny and – so far – you're the best. Keep the mood up and the tutorials free! As soon as possible i'll check on patreon to see if i can help…

  2. So How do I write 2 of them?
    I tried
    document.write(people[5]);
    document.write(people[2]);
    and it writes MicketyTommy
    when I add a line brake <br/> in between nothing appears.

  3. Question: If you were, hypothetically, to have a list of 800 items in an array, say perhaps a list of employees or something. How on earth would you remember which number in the index one particular person was? Like if I needed "John" I'm not going to remember that he was #212, so how do you manage the data aside from remembering?

  4. <!DOCTYPE html>
    <html>
    <head>
    <meta charset="ISO-8859-1">
    <title>Beginner Javascript Tutorial</title>
    </head>
    <script type="text/javascript">

    // thanks Bucky! 🙂
    </script>

    <body>

    <script type="text/javascript">

    var foods = new Array("tuna", "apple", "bacon", "tomato");

    document.write("Types of food: " + foods);

    var x = 0;

    while(x < foods.length){
    document.write("<br>", foods[0] = foods[x]);
    x += 1; // or x = x + 1
    }

    </script>

    </body>
    </html>

  5. You sir are the best teacher to learn programming from! I did try a little bit of programming at a university but the lecturers and tutors there were hopeless at teaching and hence, I didn't understand anything they were showing! Keep up with the good work!

  6. Javascript is a challenge but there's a great e-book called javascript for kids. It tries to explain javascript concepts as easily as possible. In the book there is another way to create arrays but you get the same results. I suggest to those that are learning javascript and finding it as challenging as I do to find that e-book it will help them. 

Leave a Reply