Convert Array to an Object in one line using JavaScript

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ม.ค. 2025

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

  • @xplodivity
    @xplodivity  11 หลายเดือนก่อน

    Build 16 Medium/Hard JavaScript projects for live coding Interview rounds
    Get it now- xplodivity.graphy.com/courses/16-js-projects-65883553e4b08ebe75f39885
    Full Video Preview of each project from the course- th-cam.com/video/coZucJEvsSk/w-d-xo.html
    What you'll get:
    - Lifetime access
    - Full video explanations of building each project from scratch
    - 10+ hours of premium content
    - Step-by-step explanations and code walkthroughs
    - No bullshit, No time waste
    - This project list Should get you ready for any JavaScript live coding interview round.
    - Extremely cheap (You'll be surprised)
    - Practical tips and strategies for mastering JavaScript
    - Confidence in handling technical interviews
    - Enhanced JavaScript proficiency
    Content list:
    1. File Explorer (similar to vs-code)
    2. Infinitely Nested comments
    3. Advanced Custom Toast notification from scratch
    4. Drag & Drop, Swap, Add and delete elements using JavaScript
    5. Custom Calendar/Date-picker
    6. Multi-Select dropdown with support to add & remove elements
    7. Build a Memory game with all rules integrated
    8. Build an analog clock with smooth animation
    9. Dynamic Progress bar with custom input support
    10. Build a Star rating system with dynamic hover effects
    11. Build a tic tac toe game with best practices
    12. Advanced To-Do List with Local Storage support
    13. Accordion with smooth transition effects
    14. Countdown timer & days remaining timer
    15. Create a custom modal
    16. Build an optimised Chessboard

  • @jayakumar9976
    @jayakumar9976 11 หลายเดือนก่อน

    Dude how do you learn or think these kind of method?
    I never thought that acc could be object or an array.

    • @xplodivity
      @xplodivity  11 หลายเดือนก่อน +2

      Just remember, the accumulator is initialized with the initial value you provide while using the reduce method. In this case, I specified the initial value to be an object in the 2nd argument of the reduce method.
      acc could be anything based on how you initialize it.
      Dont worry, read up on the array reduce method, and you will get a better understanding.

  • @prinzadamz
    @prinzadamz 11 หลายเดือนก่อน

    Thank You 👌👍

    • @xplodivity
      @xplodivity  11 หลายเดือนก่อน

      Absolutely welcome 😁

  • @AmandeepSingh-cv5qz
    @AmandeepSingh-cv5qz 11 หลายเดือนก่อน

    Do you work anywhere?

  • @govindpvenu
    @govindpvenu 11 หลายเดือนก่อน

    Great content

    • @xplodivity
      @xplodivity  11 หลายเดือนก่อน

      Thanks buddy!