Hey Rowdy Coders, seems there is an issue with question 20. It is giving different result in different platforms, The answer that my VSCode giving is wrong, so please run it in your device! Sorry for the inconvenience!
in shallow copy when we change primitive value it won't change for other i.e arr2 , if we change non-primitive value then it affect other i.e arr2 for example=> 1)changing primitive value const user1={ name:"chandan", age:25, address:{state:"up",city:"noida"} } const user2={...user1} user1.name="aryan" // primitive console.log(user1); console.log(user2); ans=> user2 will not change 2) changing non-primitive value const user1={ name:"chandan", age:25, address:{state:"up",city:"noida"} } const user2={...user1} user1.address.city="varanasi" // non primitive console.log(user1); console.log(user2); Ans=> it affect user2 --------------------------------- for arr1[0][1] = "1"; arr1[0][0] = "0"; it will affect arr2 (non-primitive change) but for arr1[1] = 33; arr1[0] = 22; no effect on arr2 (primitive change)
Great video! Really helpful to see the top 50 most asked JavaScript logical interview questions. Please make more videos like this on JS and React. Keep up the awesome content!
Hello It is really helpful to brush up the js skills. It would be good if you could create video of mostly asked coding questions based out of ‘array of objects’, utilizing array methods
Hi, Overall its a good stuff but some cases your explanation is bit confusing. For example at 17:40 your explaining about truth table of & and | but its too confusing and your not explaining the concept of that truth table. At 18:39 (1&&2) here your saying 1 and 2 both are true. On which basis they both are true? Just you need to explain some complex topics clearly . Rest is fine Thanks mate you provided very useful content 🙌🏻
Y hindi. Do you think everyone understands! Get educated in English as a software it's minimal skill. Stop demanding forcing others let them do whatever they wanted to
Hey Rowdy Coders, seems there is an issue with question 20. It is giving different result in different platforms,
The answer that my VSCode giving is wrong, so please run it in your device!
Sorry for the inconvenience!
in shallow copy when we change primitive value it won't change for other i.e arr2 , if we change non-primitive value then it affect other i.e arr2
for example=>
1)changing primitive value
const user1={
name:"chandan",
age:25,
address:{state:"up",city:"noida"}
}
const user2={...user1}
user1.name="aryan" // primitive
console.log(user1);
console.log(user2);
ans=> user2 will not change
2) changing non-primitive value
const user1={
name:"chandan",
age:25,
address:{state:"up",city:"noida"}
}
const user2={...user1}
user1.address.city="varanasi" // non primitive
console.log(user1);
console.log(user2);
Ans=> it affect user2
---------------------------------
for arr1[0][1] = "1";
arr1[0][0] = "0";
it will affect arr2 (non-primitive change)
but for
arr1[1] = 33;
arr1[0] = 22;
no effect on arr2 (primitive change)
Super Bro. very nice and useful content.tanks alot.
Great video! Really helpful to see the top 50 most asked JavaScript logical interview questions. Please make more videos like this on JS and React. Keep up the awesome content!
@@mayurthemaskar9182 thank you!🙏
best video Ever for interview Purpose...Make more videos💞
Sure! Stay tuned to Rowdy Coders!
Best of the best to brush up JavaScript thanks a lot 💕💞❣
Thank you 🙏 very much glad🥳🥳
Question 20 alos correct, actually you change first array1 value at the time of run so that's why Array 2 is similar to array 1
Hello It is really helpful to brush up the js skills.
It would be good if you could create video of mostly asked coding questions based out of ‘array of objects’, utilizing array methods
@@archiejain1974thank you!
Sure will create more videos on ‘Array of Objects!’
Good
Hi, Overall its a good stuff but some cases your explanation is bit confusing.
For example at 17:40 your explaining about truth table of & and | but its too confusing and your not explaining the concept of that truth table. At 18:39 (1&&2) here your saying 1 and 2 both are true. On which basis they both are true?
Just you need to explain some complex topics clearly . Rest is fine
Thanks mate you provided very useful content 🙌🏻
Awesome 🎉
Thank you🙏🤗
your questions are good but your explanations are Rapid and uncleared.. please explain in a clear context..
Great bro
@@rajeevnathverma7877 🙏 Thank you!
I am fresher preparing frontend interview can this video help me in interview or this is for senior developer
Only few of the questions in this Video are in scope for freshers. I will be creating separate content for freshers exclusively.
@@RowdyCoders Annayya, could you please provide me with a JavaScript fresher interview video link?
hello
Question 20 explanation wrong.
Seems this question result itself is giving different in different platforms. My bad!
@@RowdyCoders appreciate your replay.
Question 20 alos correct, actually you change first array1 value at the time of run so that's why Array 2 is similar to array 1
You should try to explain in hindi
It will be more beneficial for you and for also students
He's trying his best learn from it !!
Y hindi. Do you think everyone understands! Get educated in English as a software it's minimal skill. Stop demanding forcing others let them do whatever they wanted to
English is the best and the most standard way to communicate in any IT industry or any firm. You should try to learn English, not Hindi.
Question 5 - last part explanation not cleared.
Last part is closure to fix first part issue.
Q21 why there are 3 undefined?
Bro you are not good at explaining, even you don't kow most of the answer.