Pass a function as an argument to another function in JavaScript

Поділитися
Вставка
  • Опубліковано 30 вер 2024
  • / can_someone_explain_ho...

КОМЕНТАРІ • 31

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

    13:00 Why does "This is a" get called before "This is foo"?

  • @boooloool6039
    @boooloool6039 3 роки тому +6

    loved the video, seriously! passing functions as arguments is a kinda confusing topic for newbies... but you really helped me understand this important thing better! thank you and keep doing this great work... going into topics such in depth

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

      I'm so happy to hear the video helped you out. Any other topics you'd like to see covered in depth? :)

  • @dl-cb7yc
    @dl-cb7yc Рік тому

    freaking good.realy helpful thanks

  • @CHACHANUS
    @CHACHANUS 3 роки тому +2

    excellent video,,, can you show in a video how to replace a complex conditional statement with a Single-table inheritance in Rails? a polymorphic associations can be a solution too?

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

      Yeah I can do that. That’s a fun one :)

  • @simplethings5830
    @simplethings5830 2 роки тому +2

    Perfect, very very useful, crisp and clear

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

      Thanks for watching!

  • @OfficialBoominBeats
    @OfficialBoominBeats 10 місяців тому

    exactly what i was looking for thx

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

    Insanely helpful! Thank you for picking all the topics I was looking for and covering in one great tutorial.🙌

  • @kaszapnagypeter
    @kaszapnagypeter 3 роки тому +2

    Awesome video mate!

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

    Thank you!!

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

    you like a robot :D (it's a compliment)

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

    What programs do you use to project the computer screen and give movement to your image

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

    good didactics. thank you.

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

    keep it up CJ, its really help me, thanks

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

      Glad to hear that, Kashi! Any topics in particular you'd like to see covered?

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

    It passes a function but every time it passes a function it passes a function

  • @jeff-creations
    @jeff-creations 2 роки тому

    First time seeing one of your videos. Love it, one of the best presentations I have seen in a while. Clear and to the point. I now have a better understanding of functions. Thanks! Subscribed!

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

    Great stuff man, love the JS stuff! Great teacher too.

  • @reza.h3535
    @reza.h3535 2 роки тому

    thanks a lot Avilla for the explanations. after long time I found a tutorial which could help me to understand how parameters and arguments works in a function.

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

    excellent video ty for the info

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

      Thanks for watching!

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

    Trying to understand arrow functions and higher order functions in JS
    I am stuck at this question:
    "Write a function called useParameterToFilterArray that takes an anonymous function and uses that in the `unfilteredArray` filter function then return the result. let unfilteredArray = [1, 2, 3, 4, 5, 6]; //given"
    what this question is actually trying to say? (cant wrap my head around)
    could you help me understand this?

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

      That prompt doesn't really make sense to me either 😅.
      "Write a function called useParameterToFilterArray that takes an anonymous function..." looks like this:
      function useParameterToFilterArray(filterFunction, array) {
      }
      "and uses that in the `unfilteredArray` filter function then return the result."
      That part of the prompt doesn't really make sense.
      I think what it intends is to _use_ that filterFunction on each of the elements in the array to create a new array that only contains elements that when passed into the filterFunction, returns true?
      Technically, you could implement the function with array.filter(fn), but my guess is that's a bit of cheating, so this is a more raw implementation: gist.github.com/cjavdev/d7788a6b2abc64faf0ac4e1f65f2c698.

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

    amazing, this is top quality

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

    Very comprehensive

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

    thank you 3>

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

    Best explanation on the topic. this was soooooo confusing to me. but your video has made it clear and i was able to complete my practice weather app. thanks so much.

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

      Thanks for watching! Wonder what your weather app is saying about New England today with the storm!