Solving LinkedIn Frontend Interview Question | Tuple | Arrays of Array | JavaScript

Ғылым және технология

In this video, we will solve a front-end interview question from top companies like LinkedIn. We will implement a function called tuple that converts the input string into array of arrays. It should support a method multiple that returns the multiplication result of ith position element provided as input
Question link: devtools.tech/questions/s/imp...
Support Us: topmate.io/yomeshgupta/748345
Try now using the links below
devtools.tech/questions/all?t...
devtools.tech/list/all
You can support our channel via:
rzp.io/l/support-devtools-tech
devtoolstech.gumroad.com/l/su...
www.buymeacoffee.com/yomeshgupta
************************************************************
Devtools Tech is a KZread channel started as a collaborative effort among like-minded engineers to provide high-quality programming tutorials for free. We firmly believe in knowledge sharing and easy access to quality content for everyone. Hence, this channel is an effort to give back to the community and a step toward our belief -- "We rise by lifting others".
Interview questions: devtools.tech/questions/all?r...
Interview resources: devtools.tech/resources/all?r...
Hidden Gem: devtools.tech/crazyones
Team Members:
Yomesh Gupta
Portfolio: yomeshgupta.com
LinkedIn: / yomeshgupta
Twitter: / yomeshgupta
#javascript #ai #web #frontend #interviewquestions #devtoolstech #code #programming #developement #devtoolstech #code
***********************************************************

Пікірлер: 10

  • @user-so6no8mi2z
    @user-so6no8mi2z26 күн бұрын

    great explanation, keep up the consistency !

  • @DevtoolsTech

    @DevtoolsTech

    26 күн бұрын

    Thanks! ♥️

  • @sujalgupta6100
    @sujalgupta6100Ай бұрын

    Hi Yomesh, is there any video of yours for guiding for prep for interview like from JS Topics to cover + What concepts/kind of questions one must prepare as there are so many of them. Some folks keep posting huge list of JS concepts + Output based questions + Polyfill based questions + Any component implementation like Chip or OTP form etc. What to prepare form all of them ? Or maybe how much, it feels way too much.

  • @DevtoolsTech

    @DevtoolsTech

    Ай бұрын

    Hey, I don't have curated list. This is too big so any list will become big eventually. I will try to create something already it ajd share soon!

  • @AnkitGupta-lr1qq
    @AnkitGupta-lr1qq27 күн бұрын

    Great explanation. Wondering if it'd be better to throw OR return something like NaN instead of 0 inside the multiple method when the array length is 0. 0 might be a valid return value as well and doesn't distinguish enough from an edge case (like the empty array)

  • @DevtoolsTech

    @DevtoolsTech

    27 күн бұрын

    Valid point. This is also a discussion point with interview about what is the expected behaviour. I agree that 0 is a valid output. However, we need to make a decision that should we break the application by throwing an error or return 0 that shows like a default output as for user if the application breaks then that is a really bad experience.

  • @jithendra16
    @jithendra16Ай бұрын

    Can you please make a video on how to write regex expressions Also any explanation on why did you use prototype to find whether that index is present? It will be helpful

  • @DevtoolsTech

    @DevtoolsTech

    Ай бұрын

    Thanks for the suggestions! I will include it in future videos!

  • @sourabhrajwade1061
    @sourabhrajwade1061Күн бұрын

    Nice explanation. I did it by using transversing the tuple array. I have one question though. Why you added multiple in Array prototype ? Shouldn't it be tuple's property?

  • @DevtoolsTech

    @DevtoolsTech

    Күн бұрын

    Depends upon the interviewer what they want to test. Both works. I added on tuple because of convenience as we dont need to take care of a lot of edge cases in thatcase.

Келесі