TCS ReactJs Interview | ReactJs & Javascript | 🎉 Selected | Software Engineer | Developer

SdĂ­let
VloĆŸit
  • čas pƙidĂĄn 7. 09. 2024
  • #Reactjs #Javascript #tcs #Redux #Interview #MNC
    ReactJs | JavaScript | interview
    Please don't judge and comments on my answers.
    his is just the interview experience and If you know the right answers please comment below which can also help others.
    Subscribe the Channel to support for more related interviews
    Also you can send your interview experience videos at dev.roshann@gmail.com
    Join Telegram group - t.me/Reactjs_I...
    Instagram - / dev.roshan_
    Buy me a Coffee - www.buymeacoff...

Komentáƙe • 171

  • @DevAditya
    @DevAditya  Pƙed rokem +1

    ytJoin our Telegram channel
    t.me/React_JS_India
    ⭐To watch more Interview videos
    czcams.com/video/9cQsv91zBsc/video.html

  • @AbhishekKumar-vl3cb
    @AbhishekKumar-vl3cb Pƙed 2 lety +74

    *ReactJs Questions Asked In This Interview Are:*
    *1).* What is *React* ?
    *2).* How *React* is diff. from *Angular* & *Vue.js* ?
    *3).* Explain *state* & *props* ?
    *4).* How to pass data from *child* to *parent* in *class-based* as well as *functional-based* component?
    *5).* Explain *Life cycle* methods in *class-based* as well as *functional-based* component?
    *6).* Explain *Hooks* in react?
    *7).* What will happen if we pass *null or undefined* instead of empty array of *useEffect hook* as second argument ?
    *8).* What is *Redux* ?
    *9).* Why do we need to use *Redux middleware to perform asynchronous activity* ?
    *10).* What is *Redux Saga* vs *Redux Thunk* ?

    • @akshayhandgar9492
      @akshayhandgar9492 Pƙed 2 lety +1

      Can anyone tell me and of 7

    • @jkkbm
      @jkkbm Pƙed rokem +2

      @@akshayhandgar9492 yep. Empty array is the default case and is used often. It just tells the hook to run only once when the component is mounted and not to re-run on following renders.
      If null or undefined is passed as the second arg , it will cause the effect to run on every render. Might cause performance issues and infinite loop.

  • @AbhishekKumar-vl3cb
    @AbhishekKumar-vl3cb Pƙed 2 lety +68

    *JS Questions Asked In This Interview Are:*
    1). Name some features of *ES6* ?
    2). How *let* & *const* are different than *var* ? (with Examples)
    3). Do you know the concept of *Hoisting* ?
    4). What is the purpose of *const* ?
    5). Can an element be added or removed from a const variable *array* and *object* too?
    *ex: (const arr = [1,2,3,4,5])*
    6). Give examples of *rest parameter* and *spread operator* ?
    7). Is JS is *single-threaded* or *multi-threaded* ? And how does it achieve the *asynchronous* activity?
    8). What are *closures* ?
    9). What is *function currying* ?

    • @DevAditya
      @DevAditya  Pƙed 2 lety +3

      Thank you

    • @AbhishekKumar-vl3cb
      @AbhishekKumar-vl3cb Pƙed 2 lety +11

      10).* WAF to sum all the digits of a number until the sum becomes single digit ?
      *ans:-* function digSum(n)
      {
      if (n == 0)
      return 0;
      return (n % 9 == 0) ? 9 : (n % 9);
      }
      digSum(91);
      *o/p:-* 1

    • @karan522
      @karan522 Pƙed 2 lety

      @@DevAditya sir can I get your email?

    • @umairahmedofficial1
      @umairahmedofficial1 Pƙed 2 lety

      @@karan522 already mentioned in a caption...

    • @avinashmalviya8104
      @avinashmalviya8104 Pƙed 2 lety

      @@DevAditya was this interview for freshers or experienced? If experience how many years of experience in Reactjs were asked?

  • @srsrajesh8385
    @srsrajesh8385 Pƙed rokem +7

    Thanks for the video, much needed for the interview preparation. It really builds up confidence before giving an interview. Keep up the work :)

    • @DevAditya
      @DevAditya  Pƙed rokem

      Sure keep supporting & sharing 😊👍

  • @chandrashekar-us6ef
    @chandrashekar-us6ef Pƙed 6 měsĂ­ci +1

    From my TCS interview experience below are few questions
    1. const arr = [1,2,3,4,5,6,7,8,9,10]
    var numArr = arr.map(val=>val>5)
    What will the value of numArr be?
    2. Diff between
    null and undefined
    undefined and not defined
    Arrow Function vs Regular Function
    3. Extract fifth element of array without using index. arr = [1,2,3,4,5,6,7,8,9,10]
    4. Destructure city from below Object
    var empObj = {
    name: "Chandra",
    age: 36,
    address: {
    addrs1: "Koramangala",
    city: "bangalore",
    }
    }
    5. How many times will setState run and how many times the component will re-render, what will be the final value of state(value)
    class Counter extends React.Component{
    constructor(props){
    super(props)
    //initial state set up
    this.state = {value:0}
    }
    componentDidMount(){
    //updating state
    this.setState({value:this.state.value+1})
    this.setState({value:this.state.value+1})
    this.setState({value:this.state.value+1})
    this.setState({value:this.state.value+1})
    }
    render(){
    return Message:{this.state.value}
    }
    }
    6. Centering div with flex and having only three elements taking evenly distributed space
    Content1
    Content2
    Content3
    7. What is Closure, currying, generators
    8. How will you use useEffect to add event listeners.
    9. Can we have one dispatched action trigger multiple reducers in redux?

    • @Sonu-yk3uy
      @Sonu-yk3uy Pƙed 5 měsĂ­ci +1

      for exp or fresher ?

  • @rishavbhattacharyya3929
    @rishavbhattacharyya3929 Pƙed rokem +2

    My answer to the coding question :
    const add = (num) => {
    let stringedNum = num.toString();
    if(stringedNum.length === 1){
    return stringedNum
    }else{
    let arrNum = stringedNum.split("")
    let sum = 0
    arrNum.forEach(element => {
    sum = sum + Number(element);
    return sum
    });
    return add(sum)
    }
    }

  • @SaurabhMishra0709
    @SaurabhMishra0709 Pƙed 2 lety +7

    Thanks buddy for uploading this....this was really helpful for me who is going to sit for the interviews

  • @anshviyogi5444
    @anshviyogi5444 Pƙed rokem +2

    Hats of for the logic building in the last question buddy. . .

  • @ozzyfromspace
    @ozzyfromspace Pƙed 2 lety +7

    a possible simple solution to the coding question was:
    function specialSum(num) {
    const total = `${num}`.split('').reduce((acc, c) => +c + acc, 0);
    return total > 9 ? specialSum(total) : total;
    };

    • @rickeyupadhyay6898
      @rickeyupadhyay6898 Pƙed rokem

      Great Buddy I thought of same but I got confused due to split as it was an intiger but you just manipulated that using template literals great!

    • @skzahirulislam2820
      @skzahirulislam2820 Pƙed rokem

      @@rickeyupadhyay6898 function digitSum(n) {
      if(n == 0) return 0
      return (n%9 == 0) ? 9 : (n%9)
      }
      digitSum(1234)

  • @Mohit-bk4nu
    @Mohit-bk4nu Pƙed 2 lety +7

    Here's what I'd have done in that coding qn:
    function addDigits(num){
    var ans = 0
    while(num !== 0){
    let d = num%10;
    num = Math.floor(num/10);
    ans =ans+d;
    }
    return ans;
    }
    function looper(num) {
    while(Math.floor(num/10) !== 0) {
    num = addDigits(num);
    }
    return num;
    }
    var ans = looper(12345);
    console.log(ans);

  • @DevAditya
    @DevAditya  Pƙed 2 lety +11

    Please don't judge and comments on my answers.
    this is just the interview experience and If you know the right answers please comment below which can also help others.

    • @stumbleguysproboy8471
      @stumbleguysproboy8471 Pƙed 2 lety +3

      Man if everyone knows the answer but During the interview it depends how we are able to explain the answer

    • @DevAditya
      @DevAditya  Pƙed 2 lety +4

      @@stumbleguysproboy8471 Right but some intellectuals do not understand.

    • @shiva-69
      @shiva-69 Pƙed 2 lety +2

      @@DevAditya don't worry bro
      You're doing a great work!✹🙌

    • @skzahirulislam2820
      @skzahirulislam2820 Pƙed rokem

      function digitSum(n) {
      if(n == 0) return 0
      return (n%9 == 0) ? 9 : (n%9)
      }

  • @sidhantnahak4481
    @sidhantnahak4481 Pƙed rokem +1

    In shorter we could write like this
    function adddata(num) {
    let value = num.toString().split("").map((e) => parseInt(e)).reduce((a, b) => a + b);
    if (value >= 10) {
    return adddata(value)
    }
    else {
    return value
    }
    }
    let val = adddata(5467);
    console.log(val)

  • @akshupdf
    @akshupdf Pƙed 4 měsĂ­ci

    i like to convert figma design into react and because of this reason i never solve or learned js in depth but your last practical opened my eyes and i got to know that in order to get job i must practice js and learn its inbuild functions like .reduce () etc

  • @kumarvivekpandeyrock4488

    solution for the programming question
    function sumOfDigits(num) {
    while (num > 9) {
    let sum = 0;
    while (num > 0) {
    sum += num % 10; // Add the last digit to the sum
    num = Math.floor(num / 10); // Remove the last digit from the number
    }
    num = sum;
    }
    return num;
    }
    const inputNumber = 54321;
    const result = sumOfDigits(inputNumber);
    console.log(result);

  • @bishwajeetpandey1570
    @bishwajeetpandey1570 Pƙed rokem

    I also answerd all the questions, thank u so much this type of video really give confidence

  • @avinashthakur6820
    @avinashthakur6820 Pƙed 2 lety +2

    function addition(...rest) {
    const arrList = rest
    .map((elm) => elm)
    .join()
    .split("")
    .map((el) => Number(el));
    const sum = arrList.reduce((a, b) => (b += a));
    if (sum < 10) return "Enter the value whose sum is in two digit number.";
    else
    return String(sum)
    .split("")
    .map((el) => Number(el))
    .reduce((a, b) => a + b);
    }
    const res = addition(51);
    console.log(res);

    • @skzahirulislam2820
      @skzahirulislam2820 Pƙed rokem

      function digitSum(n) {
      if(n == 0) return 0
      return (n%9 == 0) ? 9 : (n%9)
      }
      digitSum(1234)

  • @vaishnavinambiar9441
    @vaishnavinambiar9441 Pƙed 5 měsĂ­ci

    1.What are pure functions
    2.What are React pure component
    3.What are higher order components
    Explain with example
    4. Typescript and example
    5. Redux

  • @vickypooniaholy
    @vickypooniaholy Pƙed rokem +1

    Coding question was the call to select. 👍

  • @codequillbaba
    @codequillbaba Pƙed 2 lety +1

    Bhai kal mera interview h aaj me aapka video dekh rha h hun😀 by the way me v HAZARIBAGH se hun😊

  • @jagdeesh9338
    @jagdeesh9338 Pƙed 2 lety

    Awesome you nailed it bro

  • @ashishpatil50
    @ashishpatil50 Pƙed 5 měsĂ­ci +1

    best

  • @sidhantnahak4481
    @sidhantnahak4481 Pƙed rokem

    At the last question he just had to change
    if(inputdata)>=10 then add data(inputadddata)
    else
    return inputdata

  • @OmDeshmukh00
    @OmDeshmukh00 Pƙed rokem +1

    Is English important â“đŸ˜¶.
    let English;
    if(English==imp){
    console.log("why")
    }
    else{
    console.log("No")
    }

  • @arvindkumarsingh8476
    @arvindkumarsingh8476 Pƙed rokem

    I think the code which you wrote will fail for this corner case :
    num = any number that sums up to 99 (99999999999)
    it's sum is 99, it will check the if condition and returns 18
    It should return 9
    Correct me, I am wrong.

  • @Alis404a
    @Alis404a Pƙed 2 lety +1

    Thanks for sharing 🙂

  • @arupde6320
    @arupde6320 Pƙed 2 lety +3

    upload more videos like that

    • @DevAditya
      @DevAditya  Pƙed 2 lety +1

      Sure, Keep supporting 😊

  • @sknazibulhossain4901
    @sknazibulhossain4901 Pƙed rokem

    We need more of this kind of video

    • @DevAditya
      @DevAditya  Pƙed rokem

      Be connected, I’ll be uploading more videos soon

  • @zuberakhtar1443
    @zuberakhtar1443 Pƙed 2 lety +1

    Can you please upload techMahindra video again ? It will be really helpful or can you please question asked by the organisation

    • @DevAditya
      @DevAditya  Pƙed 2 lety +1

      czcams.com/video/9cQsv91zBsc/video.html

    • @subhasism1890
      @subhasism1890 Pƙed 2 lety

      Most 3rd class company in the world

  • @printmusic5m50
    @printmusic5m50 Pƙed 2 lety

    Thanks for sharing.....

  • @megharajdeepak
    @megharajdeepak Pƙed 2 lety +1

    Hi Roshan...there was one video with Meesho right? I am not able to find it again. Can you share that link? Did you clear that?

  • @KareemSk-no4zv
    @KareemSk-no4zv Pƙed rokem

    In 2023 there is no job market for freshers

  • @saketabhishek5147
    @saketabhishek5147 Pƙed 2 lety

    Thanks bro

    • @DevAditya
      @DevAditya  Pƙed 2 lety +1

      Welcome :) Keep supporting

  • @anujadi8366
    @anujadi8366 Pƙed rokem +1

    Hi sir,
    All your interview experience brings me confidence to attend interviews
    How do u get the interview opportunity pls let me know

    • @DevAditya
      @DevAditya  Pƙed rokem +1

      LinkedIn, naukri, Monster

    • @anujadi8366
      @anujadi8366 Pƙed rokem

      @@DevAditya can a 1+ year experienced get opportunity to attend MNC interviews please let me know

  • @AchintyaRajcse
    @AchintyaRajcse Pƙed rokem

    Aur one request, aap ye mention kardo ki ye freshers k liye hai ya fir experienced

  • @abhishekbagade5784
    @abhishekbagade5784 Pƙed 2 lety +2

    Can you upload on backend coding interviews as well??

  • @TechloverSam
    @TechloverSam Pƙed 2 lety +1

    Hey, how does yours jsfiddle autocompleting the words? It's not working on my side.
    Can you help me, please?

    • @DevAditya
      @DevAditya  Pƙed 2 lety +1

      I guess that feature is available after Login

    • @TechloverSam
      @TechloverSam Pƙed 2 lety

      @@DevAditya I am logged In already. Still its not working!

  • @narenNKchaudhary
    @narenNKchaudhary Pƙed rokem

    Please also share your question and answer in your description or comment.

  • @code9419
    @code9419 Pƙed rokem +1

    Do the company strictly ask for a degree or self though is good to go?

    • @DevAditya
      @DevAditya  Pƙed rokem

      Any Graduation degree is enough if you have good command on these skills

  • @guyunknown9123
    @guyunknown9123 Pƙed 2 lety

    Your videos always have low audio. Please fix that, it will be helpful

    • @DevAditya
      @DevAditya  Pƙed 2 lety

      Thanks for the suggestions
      Please use the headphone 🎧

  • @letsplaycode9359
    @letsplaycode9359 Pƙed 2 měsĂ­ci

    I am also from Hazaribagh

    • @DevAditya
      @DevAditya  Pƙed 2 měsĂ­ci

      đŸ’Ș Let’s connect on Telegram.

  • @sknazibulhossain4901
    @sknazibulhossain4901 Pƙed rokem

    What is the packages company offering?

  • @piyushchopade7878
    @piyushchopade7878 Pƙed 2 lety

    Was this just one technical round that happened?

  • @Scienceandfunfanclub
    @Scienceandfunfanclub Pƙed rokem +1

    Hey , how many days it takes to get the result of first round ?

  • @umairahmedofficial1
    @umairahmedofficial1 Pƙed 2 lety

    Can anyone tell me how to negotiate for salary

  • @riteshkumarmishra9989
    @riteshkumarmishra9989 Pƙed 2 lety

    Is it ist round or second round if it was first round then what was in second round have they asked questions related to DSA or not ?

  • @sourabhranakoti9339
    @sourabhranakoti9339 Pƙed rokem

    Hi @Dev. Aditya,
    Your videos are really helpful. Actually my situation is bit complicated, i hope you can help me.
    I am working as a SAP BO developer having 2.5 yrs of exp and i want to change my tech to react js. I already learnt js and react js plus i have made projects also. I am pretty confident now.
    But I want to make my exp count, so i am going to lie on my resume that i worked on react only.
    Please guide me how to overcome when interviewer asked me about my work expierience?

    • @DevAditya
      @DevAditya  Pƙed rokem

      Thanks 😊
      Let's connect on topmate.io/roshan

    • @sourabhranakoti9339
      @sourabhranakoti9339 Pƙed rokem

      That is paid, if possible can you suggest me here what to do?

  • @sameerswankar
    @sameerswankar Pƙed rokem +1

    Bro Im scared of frontend interviews, Ive made multiple project with react nd most of the times I have to google to see the syntax , i know the idea but im very bad at syntaxes... Idk if im able to clear interview without google đŸ˜”

    • @DevAditya
      @DevAditya  Pƙed rokem

      Do more practice until you understand the every single line of code

    • @sameerswankar
      @sameerswankar Pƙed rokem

      @@DevAditya bro the thing is I know what to use for solving the problem, for example i mostly use class component , but i know useEffect is alternative of cdm in functional one, but i dont know how to write useEffect, so i google it every time and use it😐 And also I know what is media query , but i don't remember the syntax of it, i remember only @mediquery and maxwidth , đŸ„Č

    • @sameerswankar
      @sameerswankar Pƙed rokem

      @@DevAditya i will work on it 👍 grt video btw got a lot to learn

    • @DevAditya
      @DevAditya  Pƙed rokem

      @@sameerswankar thank you 😊

  • @shashankbhuvanala2952
    @shashankbhuvanala2952 Pƙed 2 lety +1

    Have you got placed anywhere or still searching?

    • @DevAditya
      @DevAditya  Pƙed 2 lety

      May i know the purpose of asking ?

    • @shashankbhuvanala2952
      @shashankbhuvanala2952 Pƙed 2 lety

      @@DevAditya I went through all of your attempted interviews. Min of 80%, your answers are accurate. And all of your videos title labled "Selected". Still you are attending interviews. That's the reason asking. Are any challenges with the recruitors or inrerview process?

    • @DevAditya
      @DevAditya  Pƙed 2 lety

      @@shashankbhuvanala2952 While searching for job i had given many interviews & then after a few days started getting the company's positive feedback one by one, BTW I have joined a Company.

    • @umairahmedofficial1
      @umairahmedofficial1 Pƙed 2 lety

      @@DevAditya which company did you join??

  • @niklausmikaelson7332
    @niklausmikaelson7332 Pƙed 2 lety +1

    Sloths taking interview

    • @DevAditya
      @DevAditya  Pƙed 2 lety

      CZcams has the feature to increase the speed

    • @pk-19
      @pk-19 Pƙed rokem

      @@DevAditya 😀😀 your sense of humour 👏👏

    • @DevAditya
      @DevAditya  Pƙed rokem

      @@pk-19 😄😄

  • @RavindraSingh-zg9eq
    @RavindraSingh-zg9eq Pƙed rokem

    bro it was ReactJS Developer interview or reactjs + Javascript developer,what was mentioned in JD or in mail?

  • @soniyamehta9282
    @soniyamehta9282 Pƙed rokem

    How much experience did you have when you gave this interview ?

  • @mohsinpathan5873
    @mohsinpathan5873 Pƙed 2 lety +1

    for how many years of experience.. ?

  • @suvankarmahato2679
    @suvankarmahato2679 Pƙed 2 lety

    Pls tell me how you find job and do apply??? Which website

  • @DeepakSoni-lx2oi
    @DeepakSoni-lx2oi Pƙed rokem

    Have you got selected?

  • @faizannajar477
    @faizannajar477 Pƙed 2 lety

    what about DSA ? will thr be seperate round for DSA?

    • @rabindrapatra7151
      @rabindrapatra7151 Pƙed rokem +1

      Those fancy concept is nor really not required in most of the places like TCS, Infosys. DSA is just overrated only for interview.

    • @rabindrapatra7151
      @rabindrapatra7151 Pƙed rokem

      You need to read DSA only if you want to attend interview for product based companies.

  • @darksoulgamer5837
    @darksoulgamer5837 Pƙed rokem +2

    Is it your strategy to speak as less as possible about any question?

    • @DevAditya
      @DevAditya  Pƙed rokem +2

      Yup 😐 Introvert issue

  • @devisriprasadkallepalli7

    What is the name of that platform being used for react js. Can u tell me plz

  • @chillmode4597
    @chillmode4597 Pƙed 2 lety

    How can we apply for this kind of jobs?

  • @viplavgupta9635
    @viplavgupta9635 Pƙed 2 lety

    Y do u blur the screen is it due to some copyright issue or what??

    • @DevAditya
      @DevAditya  Pƙed 2 lety +2

      To hide the Interviewer name

    • @pk-19
      @pk-19 Pƙed rokem

      Can we record interview? I mean.. interviewer ko koi problem nhi hogi wo mana karega bhi?

  • @ravindrareddy1722
    @ravindrareddy1722 Pƙed 2 lety

    which company interview is this one?

  • @neonew339
    @neonew339 Pƙed 2 lety

    which role is it? is it ASE ( 3.36 lpa )?

    • @pk-19
      @pk-19 Pƙed rokem +1

      9 lpa

    • @skzahirulislam2820
      @skzahirulislam2820 Pƙed rokem +1

      Bro it is for 2+ year experience you are expecting that 3.6lpa😂

  • @1980ify
    @1980ify Pƙed 2 lety +2

    Hi Roshan. Are you from CS background? Which course did you use to learn all this

    • @DevAditya
      @DevAditya  Pƙed 2 lety

      May i know the purpose to ask this question ?

    • @1980ify
      @1980ify Pƙed 2 lety +3

      @@DevAditya So that I also can learn

  • @hoangvietphan8719
    @hoangvietphan8719 Pƙed rokem

    (function() {
    a = 4987
    function dfs(a) {
    a = a.toString()
    if(a.length acc + Number(cur), 0)
    console.log(dfs(res))
    }
    dfs(a)
    })()

    • @skzahirulislam2820
      @skzahirulislam2820 Pƙed rokem

      function digitSum(n) {
      if(n == 0) return 0
      return (n%9 == 0) ? 9 : (n%9)
      }
      digitSum(1234)

  • @Yourguru9
    @Yourguru9 Pƙed rokem

    Hi bro thanks a lot sharing your experience.
    Could you know us what was your salary package about this interview?
    And was it your interview as a fresher or experience candidate?
    If you are comfortable to share please share.

    • @DevAditya
      @DevAditya  Pƙed rokem

      Glad to know ❀
      Can't disclose the salary & it was for experienced candidate.
      Watch our recent video for fresher's interview

  • @harithakrishnakumar7605
    @harithakrishnakumar7605 Pƙed 2 lety

    Is this interview taken for 3+ yrs exp?

  • @akarsh3450
    @akarsh3450 Pƙed 2 lety +1

    which tool used to record this interviews in windows ?

  • @adityakumarsingh7648
    @adityakumarsingh7648 Pƙed 2 lety

    This was it ? Or any more round ?

  • @sanjumsp
    @sanjumsp Pƙed 2 lety

    Is it for fresher or experienced?

  • @samsiddique4751
    @samsiddique4751 Pƙed 2 lety

    Can you share your resume

  • @sundarpichai8452
    @sundarpichai8452 Pƙed rokem

    how much salary u got from this interview

  • @sayankumardas5918
    @sayankumardas5918 Pƙed rokem

    Bro are you experienced or fresher?

  • @kiranfrancis7397
    @kiranfrancis7397 Pƙed 2 lety

    You are removed latest one interview video .what happened??

  • @joachimhorey2490
    @joachimhorey2490 Pƙed 2 lety

    p̜͓r̜͓o̜͓m̜͓o̜͓s̜͓m̜͓ đŸ˜±

  • @karan522
    @karan522 Pƙed 2 lety

    Sir can I get your email?

  • @ankushladani496
    @ankushladani496 Pƙed 2 lety

    Thank you for sharing....

    • @DevAditya
      @DevAditya  Pƙed 2 lety

      Keep supporting 😊

    • @ankushladani496
      @ankushladani496 Pƙed 2 lety +1

      @@DevAditya Bhaiya I am looking for an internship as Front-End Developer. Will you help me?

    • @DevAditya
      @DevAditya  Pƙed 2 lety

      @@ankushladani496 visit LinkedIn & find anyone who's working there and tell them to refer your profile, it'll help you better
      All the best