Common Array Methods - Beau teaches JavaScript

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

КОМЕНТАРІ • 40

  • @Joe.stark2
    @Joe.stark2 5 років тому +9

    Thanks beau! I love how you go straight to the fucking point and not talk for 30+ minutes. Makes it a lot easier to learn.

  • @Luxcium
    @Luxcium 8 місяців тому +3

    Aww 7 years already Beau is amazing!!!

  • @rfpeace
    @rfpeace 7 років тому +18

    what a great video! this is basically hours worth of info in

  • @TheLeo328
    @TheLeo328 7 років тому +11

    Hey Beau, this is a great video! Thank You! I would suggest for future videos, comment out the previous calls so its easier to follow. Its much easier to follow when you're returning/logging just one answer instead of everything prior.

  • @AA-em3lw
    @AA-em3lw 4 роки тому +1

    Use your code for good. You are a hero Beau! Thank you for your time and videos (=

  • @iamtharunraj
    @iamtharunraj 8 місяців тому +1

    I love that typing sound 😮❤

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

    Great job, thanks a lot!

  • @martinloeffler2119
    @martinloeffler2119 7 років тому

    quick, but all that I serarched for. Thanks

  • @zainwasem
    @zainwasem 8 місяців тому +14

    Still works in 2024

    • @Shahu-Shah
      @Shahu-Shah 8 місяців тому

      Is that a question or a answer??

    • @zainwasem
      @zainwasem 8 місяців тому

      @@Shahu-Shah this video still helps. a great video.

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

    Great video!

  • @MADPURO
    @MADPURO 6 років тому +1

    Beau, you say “remember. Use your code for good.” Can you share your goodest (not a word) code that you’ve created? :D
    Thanks for these videos as well.

  • @ACantarela2
    @ACantarela2 8 років тому +3

    Can I pass an array as third argument of splice method?
    e.g.
    var arr = ["a","b","c"];
    var arr2 = ["f","i"];
    arr.splice(2,1,arr2);
    And then arr would return ["a","f","i","c"]?

    • @freecodecamp
      @freecodecamp  8 років тому +12

      You can pass an array as the third argument. However, it would return ["a", "b", ["f", "i"]]. There would be an array in the array. The easiest way to test these things if you are using Google Chrome is to open the JavaScript console (View > Developer > JavaScript Console) and just type in the commands to see what happens. -Beau Carnes

  • @franciscomedinav
    @franciscomedinav 8 місяців тому

    I want to get into software development.
    As I've noticed, understandings how arrays work is key to programming.
    It would be good for a beginner to go back to basic math to understand them, and start applying into programing.

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

    Excellent !

  • @pleabargain
    @pleabargain 8 років тому +2

    it's a bit alarming that some of these methods are modifying data (possibly w/out the programmer knowing) ... how do I know which methods will mod the data?... I thought data was to be immutable... e.g. input > function > output... it's supposed to be a one way street, right? How do I make sure that my functions are not modifying my orig. data?

    • @BeauCarnes
      @BeauCarnes 8 років тому +7

      You just have to memorize which methods modify the array and which methods don't. These do NOT modify original array: concat, join, slice. These DO modfify: push, pop, reverse, sort, shift, unshift, and splice.

    • @VigorousK
      @VigorousK 6 років тому +2

      take a look at the documentation before using any method that you haven't used before

  • @Osama-xs8cl
    @Osama-xs8cl 7 років тому

    so how to use this playlist? btw thank you

  • @hitta750
    @hitta750 7 років тому

    how do you get the sublime console?

  • @priyanandamuri226
    @priyanandamuri226 7 років тому

    can i use.. document.write(arr); instead of console.log(arr);????????

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

      lol too late to answer, but yes
      1. document.write() will write to html page
      2. console.log() will write to console of the browser.

  • @wingsaber629
    @wingsaber629 6 років тому +1

    Hey, great tutorial! I'm having HUGE HEADACHE trying to solve this assignment. In an online made up store, the following are product SKU names, the quantity of each item ordered, and the location of the item in the warehouse. It needs to output the product SKU name and quantity only.
    INPUT:
    HL-OH-F1504P-CH-AM (1) 2EX2-4 / 2G-7 HID-LED-9004-LB (2) 2M-2_5FMK (1) 2ND FL
    OUTPUT:
    HL-OH-F1504P-CH-AM (1)
    HID-LED-9004-LB (2)
    FMK (1)
    I'm so lost as how to delete all the fluff in between the product SKU's!!! Can anyone help?

  • @andrewzerdelian5060
    @andrewzerdelian5060 8 місяців тому +1

    Nice

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

    Beau is God of Coding same like Zeus is God of Thunder

  • @towhidkashem1677
    @towhidkashem1677 6 років тому

    Which JS console plugin are you using? I would love to just be able to run javascript inside of VS code like that

    • @flipmo83
      @flipmo83 6 років тому

      Looks like CodePen.

  • @levium
    @levium 8 років тому

    Hi, a camper here.Can you tell me what tool are you using to console out? Is it a web? An editor? Thanx!

    • @freecodecamp
      @freecodecamp  8 років тому +4

      That is a feature of codepen.io which I use in my videos. If you click the link in the descpription for the code, it will open codepen.io with the console open. If you start a new 'pen' on CodePen, you have to click the 'console' button at the bottom to open the console. -Beau Carnes

    • @levium
      @levium 8 років тому

      Gosh!, didn't know that, thanks!

  • @_.sunnyraj._
    @_.sunnyraj._ 4 роки тому

    Big fan