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.
*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 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.
*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* ?
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
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?
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) } }
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);
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);
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; };
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
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);
I have a upcoming tcs ine test and i applied for the React js developer role and since its test is conducted at one of the centres what kind of a technical test can i expect
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.
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)
@@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?
@@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.
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 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 , 🥲
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?
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.
ytJoin our Telegram channel
t.me/React_JS_India
⭐To watch more Interview videos
ua-cam.com/video/9cQsv91zBsc/v-deo.html
Unable to join telegram group.
@@parthpatil8728 t.me/React_JS_India
Unable links
@@surajdubey9480 I have already told him, no use bro
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.
Man if everyone knows the answer but During the interview it depends how we are able to explain the answer
@@stumbleguysproboy8471 Right but some intellectuals do not understand.
@@DevAditya don't worry bro
You're doing a great work!✨🙌
function digitSum(n) {
if(n == 0) return 0
return (n%9 == 0) ? 9 : (n%9)
}
*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* ?
Can anyone tell me and of 7
@@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.
Please also share your question and answer in your description or comment.
*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* ?
Thank you
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
@@DevAditya sir can I get your email?
@@karan522 already mentioned in a caption...
@@DevAditya was this interview for freshers or experienced? If experience how many years of experience in Reactjs were asked?
Thanks for the video, much needed for the interview preparation. It really builds up confidence before giving an interview. Keep up the work :)
Sure keep supporting & sharing 😊👍
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?
for exp or fresher ?
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)
}
}
Hats of for the logic building in the last question buddy. . .
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);
Thanks buddy for uploading this....this was really helpful for me who is going to sit for the interviews
Best of luck
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);
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;
};
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!
@@rickeyupadhyay6898 function digitSum(n) {
if(n == 0) return 0
return (n%9 == 0) ? 9 : (n%9)
}
digitSum(1234)
Awesome you nailed it bro
I also answerd all the questions, thank u so much this type of video really give confidence
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
Exactly
best
We need more of this kind of video
Be connected, I’ll be uploading more videos soon
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);
function digitSum(n) {
if(n == 0) return 0
return (n%9 == 0) ? 9 : (n%9)
}
digitSum(1234)
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
Thanks for sharing
Thanks for sharing 🙂
Keep supporting 😊
I have a upcoming tcs ine test and i applied for the React js developer role and since its test is conducted at one of the centres what kind of a technical test can i expect
Thank you for sharing....
Keep supporting 😊
@@DevAditya Bhaiya I am looking for an internship as Front-End Developer. Will you help me?
@@ankushladani496 visit LinkedIn & find anyone who's working there and tell them to refer your profile, it'll help you better
All the best
Coding question was the call to select. 👍
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.
Is English important ❓😶.
let English;
if(English==imp){
console.log("why")
}
else{
console.log("No")
}
At the last question he just had to change
if(inputdata)>=10 then add data(inputadddata)
else
return inputdata
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?
In 2023 there is no job market for freshers
Aur one request, aap ye mention kardo ki ye freshers k liye hai ya fir experienced
Can you please upload techMahindra video again ? It will be really helpful or can you please question asked by the organisation
ua-cam.com/video/9cQsv91zBsc/v-deo.html
Most 3rd class company in the world
upload more videos like that
Sure, Keep supporting 😊
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)
Bhai kal mera interview h aaj me aapka video dekh rha h hun😀 by the way me v HAZARIBAGH se hun😊
All the best 😀
Bhai kya kya pucha ? Aur tum experience ho ya fresher?
Hey, how does yours jsfiddle autocompleting the words? It's not working on my side.
Can you help me, please?
I guess that feature is available after Login
@@DevAditya I am logged In already. Still its not working!
Do the company strictly ask for a degree or self though is good to go?
Any Graduation degree is enough if you have good command on these skills
Can you upload on backend coding interviews as well??
In future for sure
@@DevAditya backend using MERN stack
For PHP also
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 ?
1st, basic dsa
Thanks bro
Welcome :) Keep supporting
What is the packages company offering?
Was this just one technical round that happened?
What is the name of that platform being used for react js. Can u tell me plz
JSFiddle
@@DevAditya all packages default available in that website?
@@devisriprasadkallepalli7 for ReactJs better to use Codesandbox or Stackblitz
@@DevAditya ok for nodeJs which platform is best?
Hi sir,
All your interview experience brings me confidence to attend interviews
How do u get the interview opportunity pls let me know
LinkedIn, naukri, Monster
@@DevAditya can a 1+ year experienced get opportunity to attend MNC interviews please let me know
Hey , how many days it takes to get the result of first round ?
2 days, sometimes 1 week
Y do u blur the screen is it due to some copyright issue or what??
To hide the Interviewer name
Can we record interview? I mean.. interviewer ko koi problem nhi hogi wo mana karega bhi?
bro it was ReactJS Developer interview or reactjs + Javascript developer,what was mentioned in JD or in mail?
Both
@@DevAditya thanks
how much years of experience required for this interview?
Your videos always have low audio. Please fix that, it will be helpful
Thanks for the suggestions
Please use the headphone 🎧
Have you got placed anywhere or still searching?
May i know the purpose of asking ?
@@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?
@@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.
@@DevAditya which company did you join??
How much experience did you have when you gave this interview ?
2+ in React
what about DSA ? will thr be seperate round for DSA?
Those fancy concept is nor really not required in most of the places like TCS, Infosys. DSA is just overrated only for interview.
You need to read DSA only if you want to attend interview for product based companies.
for how many years of experience.. ?
3+
Can anyone tell me how to negotiate for salary
Pls tell me how you find job and do apply??? Which website
LinkedIn, Monster, Naukri.com etc.
@@DevAditya Thanku 💓
which role is it? is it ASE ( 3.36 lpa )?
9 lpa
Bro it is for 2+ year experience you are expecting that 3.6lpa😂
I am also from Hazaribagh
💪 Let’s connect on Telegram.
which company interview is this one?
Capita
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 😵
Do more practice until you understand the every single line of code
@@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 , 🥲
@@DevAditya i will work on it 👍 grt video btw got a lot to learn
@@sameerswankar thank you 😊
Have you got selected?
How can we apply for this kind of jobs?
LinkedIn
This was it ? Or any more round ?
2nd tech round
@@DevAditya tech round mein kya pucha bro?
which tool used to record this interviews in windows ?
Mac has inbuilt tool
Is this interview taken for 3+ yrs exp?
2+
Sloths taking interview
UA-cam has the feature to increase the speed
@@DevAditya 😀😀 your sense of humour 👏👏
@@pk-19 😄😄
how much salary u got from this interview
18 lakh ka package
@@VIPKFLOW nc
Hi Roshan. Are you from CS background? Which course did you use to learn all this
May i know the purpose to ask this question ?
@@DevAditya So that I also can learn
Is it your strategy to speak as less as possible about any question?
Yup 😐 Introvert issue
Is it for fresher or experienced?
Experience
Bro are you experienced or fresher?
Experienced
Can you share your resume
Send me your email
You are removed latest one interview video .what happened??
Watch the Recent Video
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?
Thanks 😊
Let's connect on topmate.io/roshan
That is paid, if possible can you suggest me here what to do?
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.
Glad to know ❤️
Can't disclose the salary & it was for experienced candidate.
Watch our recent video for fresher's interview
(function() {
a = 4987
function dfs(a) {
a = a.toString()
if(a.length acc + Number(cur), 0)
console.log(dfs(res))
}
dfs(a)
})()
function digitSum(n) {
if(n == 0) return 0
return (n%9 == 0) ? 9 : (n%9)
}
digitSum(1234)
p͓̽r͓̽o͓̽m͓̽o͓̽s͓̽m͓̽ 😱
Sir can I get your email?
dev.roshann@gmail.com
Thanks for sharing.....
Glad you liked it 🙂