Top Eight JavaScript Objects And Array Functions You Should Know!

Поделиться
HTML-код
  • Опубликовано: 2 дек 2024

Комментарии • 61

  • @KalpeshPanchal
    @KalpeshPanchal 4 года назад +22

    8 Functions mentioned:
    filter, map, reduce, forEach, some, Object.keys, Object.values, Object.entries.
    Thanks Erik!

    • @tibettenballs4962
      @tibettenballs4962 2 года назад

      Do you think your better than me.? Or perhaps your dingaling is smaller than mine? Let me kno.

    • @yvng4697
      @yvng4697 2 года назад

      @@tibettenballs4962 um wth u talkin about?

    • @tibettenballs4962
      @tibettenballs4962 2 года назад

      @@yvng4697 Kalpesh and I were friends many years ago. We used to smoke cigarettes and meth together while doing math together in the same earth that you and I live on.
      Now he thinks he’s a big old bollywood Siddartha actor.

    • @yvng4697
      @yvng4697 2 года назад

      @@tibettenballs4962 umm oh ok

    • @tibettenballs4962
      @tibettenballs4962 2 года назад

      @@yvng4697 wanna replace K as my friend? #ihavenofriends #nobodylikesme #shouldidoit?

  • @mimArmand
    @mimArmand 5 лет назад +10

    5:11 >> You'd use for loop if you want to break out of the loop before it completes which helps to make your function/algorithm more efficient when the input array is very long

  • @ValdaXD
    @ValdaXD 6 лет назад +9

    I know that some functions are simplifying the code. But if you want performance, build your own functions with the "for if when,etc " functions, per example , foreach works , but if you have an array with 10000+ items, then, use for

  • @andresfrr100
    @andresfrr100 6 лет назад +22

    I like this video.Could you make more videos like this?

  • @sewei24
    @sewei24 6 лет назад +1

    Helpful. Thanks. I have bad short-term memory. Unless its a childhood trauma, I am not going to remember it. I visit your page a lot. I like how you went over examples then coded different examples on-the-fly afterward. It helps when I see another coder work through little bugs.

  • @luckieboy_logee
    @luckieboy_logee Год назад

    Well explained bro🎉🔥🔥🔥

  • @augustineonyekachiadmiora9015
    @augustineonyekachiadmiora9015 2 года назад

    Thanks man what a refresher.. i would subscribe. you should prpbably do more of these

  • @jacksto123
    @jacksto123 5 лет назад

    Great teaching style! Subbed. I’ve been having trouble with basic js concepts and your videos help

  • @KenzoArts
    @KenzoArts 5 лет назад

    I wanna know about your recording setup , what tools do use ? The recording of the screen at the background looks cool !!!

  • @samsilvaluebinder
    @samsilvaluebinder 5 лет назад

    Great video thanks! I'm getting ready for an interview for my first coding job. I didn't know about .some() this is great. I love you.

    • @SajidLatifDK
      @SajidLatifDK 5 лет назад

      samsilvaluebinder did you get the job? :)

    • @samsilvaluebinder
      @samsilvaluebinder 5 лет назад

      @@SajidLatifDK Nope. But today I got my first freelance contract!

  • @samseekamp3767
    @samseekamp3767 5 лет назад

    Great video! Would love it if you could create some more with complex map, filter, and reduce problems.

  • @جواهرالشعرالعربي
    @جواهرالشعرالعربي 3 года назад

    i like this video
    Thank you sir !

  • @petegi
    @petegi 6 лет назад

    About foreach and for - yesterday i had to loop through Files in FileList object (when you add multiple files via input[type=file]). .foreach doesn't work with that, you have to use good old for ;)

    • @ProgramWithErik
      @ProgramWithErik  6 лет назад

      Aww good point! :)

    • @JOKINIEMI187
      @JOKINIEMI187 6 лет назад

      You can use Array.from(files).forEach(file => { ... }) with ES6.

  • @busyrand
    @busyrand 6 лет назад

    This was Fantastic Content! Thanks Erik.

  • @pstha4537
    @pstha4537 Год назад

    concise, nice. short.

  • @elszczepano
    @elszczepano 6 лет назад

    Great video! Thanks a lot :)

  • @prsion1925
    @prsion1925 5 лет назад

    keep up the good job!!!

  • @app300ful
    @app300ful 6 лет назад

    Just an idea. But can u make a video about setting up vuejs with an cms system?

  • @uubaidullah
    @uubaidullah 5 лет назад

    Thanks Sir Erik

  • @databyazar
    @databyazar 4 года назад

    very interesting video, #lovejavascript

  • @Ravikumar-gj6qw
    @Ravikumar-gj6qw 5 лет назад

    I love this video make more upload bro

  • @yaroslavmuzychenko9084
    @yaroslavmuzychenko9084 5 лет назад

    Good video

  • @RameenFallschirmjager
    @RameenFallschirmjager 5 лет назад

    why you didn't use semi colons?!

  • @insideTheMirror_
    @insideTheMirror_ 5 лет назад

    Thanks bear! ;)

  • @revanthkalavala1829
    @revanthkalavala1829 Год назад

    Spotted Doppelganger of Newton school moderator 😮!!
    Is " Some" Function is used frequently ?
    Object.values is definitely 🚫 an array. It is like a 👻 array. Iterable or something

  • @parashuramhosmani1581
    @parashuramhosmani1581 Год назад

    Nice

  • @acethomas5774
    @acethomas5774 3 года назад

    Can someone plz help me with some JavaScript functions for this online game that I play

    • @ProgramWithErik
      @ProgramWithErik  3 года назад

      You should throw that up on StackOverflow

    • @acethomas5774
      @acethomas5774 3 года назад

      @@ProgramWithErik Is that like a website or something?

  • @sebseb3229
    @sebseb3229 6 лет назад

    Typed in the firs few functions, I run them and they all coming out as undefined

    • @ProgramWithErik
      @ProgramWithErik  6 лет назад

      Hmm... try in the chrome console

    • @sewei24
      @sewei24 6 лет назад

      You need to console.log(variable) the variables you are storing.

    • @acethomas5774
      @acethomas5774 3 года назад

      @@sewei24 Do you know how to do JavaScript functions for a game

    • @sewei24
      @sewei24 3 года назад

      @@acethomas5774 I have never built a game myself.

    • @acethomas5774
      @acethomas5774 3 года назад

      @Ramsey Seweingyamwa I’m not trying to build a game I’m trying to get scripts for a game that I play online

  • @ozarkchinquapin6010
    @ozarkchinquapin6010 6 лет назад

    Love your beard and this video

  • @ThatGuyDownInThe
    @ThatGuyDownInThe 4 года назад

    beautiful

  • @oyash516
    @oyash516 4 года назад

    square root =squirt
    😁

  • @valentinoforever
    @valentinoforever 5 лет назад

    Top Eight? Are not 7?
    filter
    map
    some
    reduce

    Object.values
    Object.keys
    Object.entries

    • @unsweetenedit9090
      @unsweetenedit9090 5 лет назад

      He mentioned 'every' while discussing 'some'. Not much of a discussion but the context made it simple enough.

  • @tadejdanev5030
    @tadejdanev5030 6 лет назад +1

    shave much? :) thanks for yt :)

    • @ProgramWithErik
      @ProgramWithErik  6 лет назад +4

      Haha , actually coincidentally I just shaved this morning :)

    • @mirzasisic
      @mirzasisic 6 лет назад +1

      Why shave, chicks love beards :D

  • @abdulmateenshah4850
    @abdulmateenshah4850 5 лет назад

    Erik have you converted to Islam, cause your face seems glowing with light

  • @kavyatimalsina3416
    @kavyatimalsina3416 2 года назад

    you look confused yourself