Capgemini - ReactJS Interview | Frontend Developer | 5+ Years | JavaScript Interview Questions 2022

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

КОМЕНТАРІ • 102

  • @MythicEcho
    @MythicEcho 2 роки тому +104

    Q1. Difference between let, var and const.
    Q2. // Get output 1,2 without using let.
    for(var i=0; i

  • @chiragjoshi6483
    @chiragjoshi6483 2 роки тому +41

    Bro after listening to you, it feels like you understand every topic clearly before implementing them in code, great 👍

  • @dileepnagendra8199
    @dileepnagendra8199 2 роки тому +23

    You got deep knowledge in JS. Awesome man

  • @samuelxavier7038
    @samuelxavier7038 Рік тому +6

    one can basically evaluate their knowledge in JS with this interview , this was super helpful thank you.

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

      Thank you..
      Keep learning !!

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

      Interview questions share for freshers and experienced

  • @sumanthkonthala9682
    @sumanthkonthala9682 Рік тому +16

    I have around 2.5 years of experience in MERN stack
    Recently I started giving interview
    interview questions
    1)what is web workers
    2)what is aws-node js architecture
    3)explain microservices in node js? Have you ever used?
    4) custom hook( I wrote custom hook with long polling concept)
    5)middleware in backend?
    Problems
    1)leap year with out using inbuilt function
    2)remove duplicates and sort an array without using in built
    Even answering all I got rejected 😢 because I didn't have any experience on payment methods like razor pay implement or pay tm implementation

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

      exactly

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

      Your interview was for which company

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

      @@nehagunne5996 start up
      Bangalore
      12.5lpa

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

      Depends on the company.
      It doesn't mean what you are doing is wrong but company need specifically that person who has worked with payment methods

  • @azadchauhan963
    @azadchauhan963 9 місяців тому

    I would appreciate the interviewer too for asking real world practical questions which is oftenly faced in development, simultaneously testing the thought process and the problem solving approach.

  • @indiancuriousvoice8773
    @indiancuriousvoice8773 Рік тому +4

    Last question for protect route we can use react context api, redux for storing user authentication and then redirect through the usenavigate hook otherwise redirect to login page.

    • @rickypicture9026
      @rickypicture9026 7 місяців тому

      great answer, this is what I used at my last job

  • @suranjitnamasudra3239
    @suranjitnamasudra3239 2 місяці тому

    27 min last ans is like we can create routeProtector for this like userProtect route, Admin protect route and wrapped the respective route that we wants to protect. Suppose for Admin panel is protected by admin protect route, user order, carts, profile, this will protect by use route. And basically the protect route will do first check is user is loggedIn then he can access his profile, orders,carts. But if users try access a Admin protect route first we will check is loggedIn, then check his role, if his role is admin then return the children else return to errors page. Although protected routes are hide based on his auth and credentials. And to make sure that he should not access it from address bar.

  • @akj3344
    @akj3344 2 роки тому +7

    This is actually a great interview. Thanks for sharing

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

      Do like and share with your friends who needs it

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

    This video has helped me a lot practicing my JS questions, by the way they did not ask much JS and asked only angular. This channel's angular videos specially the cognizant interview was very sharp and gave me resolution on how to study and what to study, watched nearly every videos here and the interviewer has very sharp concept clearance. Gave me a boost in my confidence to sit and be confident while answering.
    The main thing while the interview was happening is, I was asked nearly everything from CSS, SCSS, Angular and git.
    Git was nicely answered, but angular questions was half repeated from the cognizant interview video and globant video.
    Thank You pawan, for helping me and giving me the confidence I wanted to excel the interview.
    I cleared my first round successfully, and preparing for the next round.
    Thanks!! Again !!

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

      how many years of exp u have and any coding questions they ask??

    • @atifasadkhan
      @atifasadkhan Рік тому +1

      U made it ?

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

      @@atifasadkhan yes, but my ask was too high & non negotiable...and they wanted someone cheaper and they can go with someone weaker but not costlier coz i only had one year of experience that time & asked 11 lpa total of my that time's current 120% hike.

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

      @@saurabhkumarjha4996 ohhhh !!!! 🙌🙌

  • @uidevguide
    @uidevguide  Рік тому +1

    Share your Resume if you want to have mock interviews with us,
    uidevguide@gmail.com,
    If you need any other help,
    topmate.io/dashboard/services/video

  • @akashmaurya4583
    @akashmaurya4583 4 місяці тому

    const obj1 = obj2 is not a shallow copy its an assignment by reference

  • @indrasishbanerjee3602
    @indrasishbanerjee3602 4 місяці тому

    For a 5+ years of experienced person that questions are really too easy except last 2 or 3 i think

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

    Excellent. Brother.
    Thanks for sharing this.

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

      Thank you 🙏🏻.
      Keep learning 😎

  • @balindra
    @balindra 3 місяці тому

    Great interview ,

  • @protectrprime7643
    @protectrprime7643 Рік тому +4

    Interviews I attend: "Here you have 3 tasks for data structure and algorithms , complete them in 1 hour while I'm watching. Let's start with those easy graphs, tries and will proceed with design-patterns-related practical task".
    This is for mid-level developer ))

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

    How to manage nested routes terms of role based routing?
    In session we store token of user which will get us role of logged in user through API. We can store this role in context or redux state and then by the help of selector we can get access value from state and add route only if user has the access to that particular page
    ex: {hasAccess && }

  • @Piyush-gt3wf
    @Piyush-gt3wf Рік тому

    let also going to be hoisted but it will not be attached to the global window, it will be in the separate script block inside the developer tool and for the temporal dead zone ...........? can anyone elaborate on the separate script block

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

    Great knowledge 👍

  • @nitendrasinghchauhan9207
    @nitendrasinghchauhan9207 6 місяців тому

    Pure component he said it wrong. He actually told about HOC.

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

    I dont understand between map vs filter..both are creating new array then what is the difference between these..

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

      Map: returns an array of pieces of information from the original array. In the callback function, return the data you wish to be part of the new array.
      Filter: returns a subset of the original array based on custom criteria.
      anyone here to contribute more

  • @indiancuriousvoice8773
    @indiancuriousvoice8773 Рік тому +2

    Bro const is not blocked scop it is a global scope but can not re assignment where var is also a global but be re assignment. Whether let is a blocked scope with the function of re assignment.

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

      padh ke aaa

    • @indiancuriousvoice8773
      @indiancuriousvoice8773 Рік тому +2

      @@codingwalebhaiya9879 are theory pad k gyan mat pel. Es6 me const ko globally use kia ja sakta hain.

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

      @@indiancuriousvoice8773 Tera baap hu bsdk ke tere se ni ho payega

    • @uidevguide
      @uidevguide  Рік тому +4

      @@indiancuriousvoice8773 hey buddy it depends on where you create your const variable .
      If you are creating in any block then it will be accessible in block only so in that case it wil be block scope variable

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

    How to get a job in frontend developer as a fresher and how to applay for job please make a video ...

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

    IT WAS OK INTERVIEW NEITHER TOUGH NOR EASY

  • @Nikhil-qd9up
    @Nikhil-qd9up Рік тому +1

    Had a quick question,what was exactly the question for getting output 1,2 without using let?
    I think without using setTimeout also by only using var it would have given the same output as 1 2
    Please let me know if i missed anything

    • @uidevguide
      @uidevguide  Рік тому +2

      Hi Nikhil,
      the question is for how you know event loop and how setTimeout works and when it will execute,
      without setTimeout this question not makes sense,
      Please try to create multiple scenarios for such question it will help you in your interview process

  • @432aniketkadam4
    @432aniketkadam4 9 місяців тому

    "Does this question, which feels more suited to a fresher interview, seem appropriate for candidates with 5+ years of experience? It might be perceived as too basic for seasoned professionals."

    • @uidevguide
      @uidevguide  9 місяців тому

      When do you want to scheduled mock interview then 😅😅

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

    map and filter return new array, so it won't affect the original array even if we change the result of them. How come mutability and immutability here?

    • @uidevguide
      @uidevguide  Рік тому +1

      Javascript coding interview questions #codinginterviewquestions @uidevguide

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

    What about the further rounds , is it the only technical or other technicals were there as well

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

      @@uidevguide thank you so much for replying so frequently, any tips for a fresher front end dev, like how to get calls and make my resume attractive.

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

    Very basic questions for 7 years exp

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

      Hi Vaibhav, well said, even I was curious to know how those questions would be for 6-7+ exp

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

      can you give a brief concepts or ways those questions should have been, in you point of view

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

      @@raju4756 He is just a Noobie, just knows to spit in comments

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

      @@primeprocrastinator5175 looks like you're tracking his moves.. Lol, just kidding .🙂.haha

    • @gauravdwivedi-h5t
      @gauravdwivedi-h5t Рік тому

      Allow me to take your interview. IF U answer any five questions out of 50 . I will give you 50k.

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

    Can you tel me the intro song please..

  • @peacefreedom8349
    @peacefreedom8349 2 роки тому +4

    hi.. thanks for sharing.. btw have you got selected?

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

    any interview question for angular ?

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

      Hey this interview for react js developer

  • @JayeshCholkar-v7v
    @JayeshCholkar-v7v 9 місяців тому

    5+ Years

  • @southcomet
    @southcomet 7 місяців тому +2

    how is the interviewer following you fast answer... he will simply be freezed... though i know this is edited version and no screen prompting

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

    Nice

  • @shivamrawat7523
    @shivamrawat7523 Рік тому +1

    good in javascript but not that good in react

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

    What's ur interview result?

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

    I checked in console and 3-"33" returns -30. Interviewer playing with you?

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

    Hi bro package?

  • @reddyvaritejeshkumarreddy3517

    Private routes

  • @monnuvibes
    @monnuvibes 5 місяців тому

    He just throwing text book defination, real life example he doesn't know 🤣🤣

    • @uidevguide
      @uidevguide  5 місяців тому

      Good at least your prepared.
      When you want to mock interview then

    • @monnuvibes
      @monnuvibes 5 місяців тому

      @@uidevguide please refer me then, i will give

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

    How much is the package

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

    var ❌ vhar ✅

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

    it s harder to listen your accent then the code

  • @engiak.shorts5820
    @engiak.shorts5820 Рік тому

    How much ctc did they offer you?

    • @uidevguide
      @uidevguide  Рік тому +1

      Not joined 🧐🧐

    • @engiak.shorts5820
      @engiak.shorts5820 Рік тому

      @@uidevguide I am little bit confusing between frontend and backend. Which one I have to choose if I want a high salary. I have 1 year experience so I am confused which is better for me.

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

      Hey @@engiak.shorts5820 please DM on instagram

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

    more interviews in react please

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

      ua-cam.com/play/PLAgJNt0flqKfrqKQaW2_Hq780MMMseEgW.html&si=f5tH_-ar0rsm4g2k

  • @astronaut22
    @astronaut22 9 місяців тому

    ♥♥

  • @ShortCodeDev
    @ShortCodeDev 5 місяців тому

    for (var i = 0; i

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

    Experience?

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

      I'm also MERN stack dev. Have taken plenty of interviews also. This is a pretty good interview standard I found. Did you clear this round?

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

      Did they ask you any architectural questions? Or design patterns?

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

      Are you working at CTS now?

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

    Hi , I have a doubt in shallow copy answer. Shallow means if we do any change in obj1 it will reflect new obj.Right?.
    You said shallow copy 1. const obj2 = obj1[normal way] 2) Spread Operator 3) Object.assign these are ike shallow copy.
    But by using Spread Operator, I tried please correct me if am wrong.
    const emp1={
    eid: "E102",
    ename: "Jack",
    eaddress: "New York",
    }
    const emp3 = {...emp1};
    emp3.eaddress = "US";
    console.log(emp1); //o/p:{eid: 'E102', ename: 'ashu', eaddress: 'New York'}
    console.log(emp3); //o/p:{eid: 'E102', ename: 'ashu', eaddress: 'US'}
    emp1.eid = "E108";
    console.log(emp1); //o/p:{eid: 'E108', ename: 'ashu', eaddress: 'New York'}
    console.log(emp3);//o/p:{eid: 'E102', ename: 'ashu', eaddress: 'US'}
    please explain?