Thank you Nisha for simply awesome explanation. Your deep copy and shallow copy video helped me in my interview. please make more and more videos for front end interviews :)
@@NishaSingla good content; Thanx for explaining this concept; As I see and understand this --> this helps write clean code. Not just very long walls of JS/ES6 code that we often end up with, in projects, but isolating, segregating pieces like individual/independent building blocks; I suppose this promotes easier testability of the same as well like unit tests etc. That, plus the point you mentioned yourself --> making it more reusable *** func. logic should be d[i]*d[i] as it's not double but square.
Please help me on this : write a function which will display all the values with 'value' key in es6 let multiLevelData = { value: 2, data: [{ value: 3, data: [{ value: 4, data: [{ value: 6, data: [] }] }, { value: 5, data: [] }] }] }
Because I am passing y to x function x(y) and if you check here y is also a function which I am referring with fn argument inside x function , so I am calling fn() , it means it will execute y() function and that is Higher Order function( function passing as argument to other function) I hope its clear
i liked the way you explained Array.prototype now i can utilize, in the place of map,reduce,filter
Very useful..i am happy understand my long time doubts. Thank you
Glad to know 😀
Good Content
Thanks
Clear Explanation thank you!👍
excellent explanation nisha
Your video are very helpful to me. thanks a lot. ............explanation should be twice instead of square.
Plz explain pure and impure functions. Thanks for your great videos.
Sure
Thank you Nisha for simply awesome explanation. Your deep copy and shallow copy video helped me in my interview.
please make more and more videos for front end interviews :)
Glad to know ..😀😀thanks
Clear explanation
Thanks 😊
Nisha , it was really helpful tutorial pls make one complete playlist on interview javascript these thing
Sure thanks
@Nisha singla could you pls do “Joseph’s problem “ using recursive in java script
👍 nice
Hi Nisha, your explanation next level,
I thought instead of citizen, it's object.
Thanks 😊
Thanks nisha its very useful
1:31 second Syntex is wrong you forget to write =>
Please upload more videos of Advance Javascript.
Please give me some project ideas to implement rxjs in angular..
why everyone does not give real life usecase of hof?
Nisha do video on life cycle hock
Hi nisha, your videos are good. Can you please make videos on oops in javascript
Tq
It would be much obliged by us if upload notes for the same as well..🎉
Just a correction , square is number * number
Nice video ma'am. But square means number*number . Not multiple with 2. 😉
Yes, you are right... add a subtitle to correct that.. Thanks to bring it in my notice... :)
Ma'am please make video on practical coding issue.
How big companies write some pices of codes? What are their parameters for a specific language . Such as c#, javascript, how they write?
@@NishaSingla good content; Thanx for explaining this concept;
As I see and understand this --> this helps write clean code. Not just very long walls of JS/ES6 code that we often end up with, in projects, but isolating, segregating pieces like individual/independent building blocks; I suppose this promotes easier testability of the same as well like unit tests etc. That, plus the point you mentioned yourself --> making it more reusable
*** func. logic should be d[i]*d[i] as it's not double but square.
Absolutely…. You mentioned it very well
And regarding formula , I added in caption the correct one.. 😊😊
Please help me on this :
write a function which will display all the values with 'value' key in es6
let multiLevelData = {
value: 2,
data: [{
value: 3,
data: [{
value: 4,
data: [{
value: 6,
data: []
}]
}, {
value: 5,
data: []
}]
}]
}
function recursivePrintData(d) {
console.log(d.value);
if (d.data.length === 0) return;
d.data.forEach((val) => {
recursivePrintData(val);
});
}
recursivePrintData(multiLevelData);
In function x argument is fn but inside the function you are doing fn() I didn't not understand why you are doing this
Because I am passing y to x function x(y) and if you check here y is also a function which I am referring with fn argument inside x function , so I am calling fn() , it means it will execute y() function and that is Higher Order function( function passing as argument to other function)
I hope its clear
@@NishaSingla thank you for your clarification now crystal clear.
Array.prototype.repEachElement = function(callback) {
return this.reduce((newArray, element) => {
newArray.push(callback(element));
return newArray;
}, []);
}
let data = [1,2,3,4,5,6];
const op = data.repEachElement((el) => el);
console.log(op);
square of 10 is 100, how come 20, that is multiplication of 2.