🔴 Get my Complete Frontend Interview Prep course - roadsidecoder.com/course-details If this video gets good response, I will make more JS interview videos, so do share it with others 🔥
Just took a moment in between watching the video to appreciate you, you have explained all the concepts amazing and with such clear explanation. Please keep up your good 🥰💝
Thank you @RoadsideCoder , for the excellent explanation! However, at 8:35 in the video, you mentioned that the output of the for loop is 0, 1, 2, 3, 4, 5. This is incorrect; it should be 0, 1, 2, 3, 4. Please make this correction.
The examples of callback function you gave are all called higher order function instead these functions accept callbacks as an argument. Ya I can understand that sometimes they confused us lot don't worry , stay connected with us we all need your content we are liking this so much.
In JavaScript, a callback function is a function that is passed into another function as an argument. A “higher-order function” is a function that accepts functions as parameters and/or returns a function.
Very Nice Video !! In last question, I guess one point is missing. In arrow Function, hoisting doesn't work (It only works for regular function). For example: This will work: console.log(addNum(5, 6)) function addNum(a, b) { return a + b } But This one will not: console.log(add(5, 6)) const add = (a, b) => { return a + b } Please correct me.
Great content, got some more questions while taking interview for new candidates. Also to add one point related to function expression If we create a function expression using var and const keywords and invoke before its declaration, we would get different set of errors. 1. var - can't invoke function before initialisation. 2. const - "functionName" is not a function. Hope this helps someone, debugging any bug. 😁
I think you wrote it in other way around. For var it says - "functionName" is not a function. For let and const = cannot access "functionName" before initialization. It showed these two when I run those. Am I missing something?
@@hasibalfuad9652 You are right! Its the other way around. Basically for var, it hoists with undefined as the value so it says "it's not a function" On the other hand for const, its in temporal deadzone, eventually we can't access it until compiler reaches to the point where it is initialized.
Hi bro , I have a question/s Is there any possible way to get front-end intern (do they exist? or are they any company offering them?) and how to find them ? and how to make a strong front-end intern resume
Good information share piyush i remember, when I khown noting about java script , and by continue pratice now i aware with of most of things as keep posting videos .
Function expression : when a variable is assigned to an anonymous function . - what are fc functions . Basically we can pass functions like variable - what is iife immediately invoked function expression we can call a function without explicitly invoking it elsewhere . -let has block scope whereas var doesnt have block scope -functions are hoisted completely -hoisting initialized the local scope separately . -spread and rest operator -rest parameter must be the last formal parameter !!!!!!!!!!! -callback function : function passed to another function -arrow function : syntax different , implicit return , arguments keyword is not defined inside an arrow function , this keyword inside arrow function refers to global scope
Is it possible to make an internal transition from frontend to backend or full stack or vice versa or change tech stack while working inside FAANG companies or startups.
@RoadsideCoder, thanks for this series and also for the React interview question series. I have this doubt from long time could you please answer this. *doubt in section 10 of this video*. you put i * 1000 in the time of setTimeOut second parameter so why it is consoling after every 1 second. yaha par 5 iteration hona hai(0, 1, 2, 3, 4) so for the first time i = 0, and for the second time i = 1, and for the third time i =2 and so on. so the value is different every time then why the console is printing after every 1 second. Please respond. Thank you
Sir please make DSA in javascript also sir there is no content on youtube..about DSA in javascript please make DSA video also it will be very helpful for us......❤
@akshaymarch7 did it before it was cool! Huge respect for the man really. And kudos to guys like you who are helping us learn over top of what we learned from NamasteJs
hi, i dint understand your question number 7. solution. Why did 'var' print 5 evrytime when it was initialzed from 0 in for() loop. Can u please explain..??
for loop executes way faster than settimout function when the funactions are called by the memory queue for each second they Var value will be 5 so its will print 5 5 5 5
Hi everybody. I just interviewed for a javascript developer position. Is the entry level. But the company gives 2 tests. iq test and java test. I don't understand what kind. 😆
Reallyy a worth watching all the videoss 😍,,,,, u making all the points clr and crisp . Plz make the videos for await asyn vs promise difference , and interview qstns related to tht concepts
this in normal function: Merko kisne bulaya be (user object ne) this in arrow function: Mere bap ko kisne bulaya be (papa ke papa ne which is globalObject)
var username='Addy negative'; var user={ rc1:()=>{ console.log('my name is '+this.username) }, rc2(){ console.log('my name is '+this.username) } } user.rc1(); // "my name is Addy negative" user.rc2(); // "my name is undefined" Why closure property is not working for rc2() ?????
🔴 Get my Complete Frontend Interview Prep course - roadsidecoder.com/course-details
If this video gets good response, I will make more JS interview videos, so do share it with others 🔥
Piyush sir please a video on portfolio website with react js
@@preetikabra5737 Sure
Next make on this keyword and some React live coding challenges
Your explanation is very good, simple and correctly explained
Please post as many as possible interview video s 👍
just watch for 3 min and i am getting all the answers that i am trying to find from so long, awesome work bro.
❤️❤️
Now I regret ,why I didn’t watch ur video earlier
thank you so much no one explaining as you do
Just took a moment in between watching the video to appreciate you, you have explained all the concepts amazing and with such clear explanation. Please keep up your good 🥰💝
Your videos helped me a lot in cracking interviews. Thanks a lot.
Wow amazing man ❤️
Most valuable for tricky question and in interview time , thank u brother....
🤟🤟
Thank you @RoadsideCoder , for the excellent explanation! However, at 8:35 in the video, you mentioned that the output of the for loop is 0, 1, 2, 3, 4, 5. This is incorrect; it should be 0, 1, 2, 3, 4. Please make this correction.
The examples of callback function you gave are all called higher order function instead these functions accept callbacks as an argument.
Ya I can understand that sometimes they confused us lot don't worry , stay connected with us we all need your content we are liking this so much.
In JavaScript, a callback function is a function that is passed into another function as an argument. A “higher-order function” is a function that accepts functions as parameters and/or returns a function.
that's true, but first class function are assigned to a variable. @@Lavith_kuttu
Just finished watching all the videos in this playlist. Thank you so much! It really helps
Good day!
Gratitude for your kindness and efforts
Thanks Rishi 🙏🙏
UA-camrs like you are really contributing to society...thanks bhaiya 🎉
Simply awesome 🙌
so much to learn !
Very useful!) explained a lot
Very insight full
Very Nice Video !!
In last question, I guess one point is missing.
In arrow Function, hoisting doesn't work (It only works for regular function).
For example:
This will work:
console.log(addNum(5, 6))
function addNum(a, b) {
return a + b
}
But This one will not:
console.log(add(5, 6))
const add = (a, b) => {
return a + b
}
Please correct me.
Exactly This point got missed.
Normal functions are hoisted, function expressions/array functions are not hoisted !
@@rushikeshgandhmal yes function expression and arrow function are not hoisted
Great content, got some more questions while taking interview for new candidates.
Also to add one point related to function expression
If we create a function expression using var and const keywords and invoke before its declaration, we would get different set of errors.
1. var - can't invoke function before initialisation.
2. const - "functionName" is not a function.
Hope this helps someone, debugging any bug. 😁
I think you wrote it in other way around.
For var it says - "functionName" is not a function.
For let and const = cannot access "functionName" before initialization.
It showed these two when I run those. Am I missing something?
@@hasibalfuad9652
You are right!
Its the other way around.
Basically for var, it hoists with undefined as the value so it says "it's not a function"
On the other hand for const, its in temporal deadzone, eventually we can't access it until compiler reaches to the point where it is initialized.
Thanks you for this 💛
Awesome video bhaiya....
Thanks bhai
now i am in a good mood
Thank you so much.
Hi bro , I have a question/s
Is there any possible way to get front-end intern (do they exist? or are they any company offering them?) and how to find them ?
and how to make a strong front-end intern resume
Thanks for sharing 👍
Awesome brother
Thank you piyush sir 😊 keep it up
Thanks Swati 🙏
in the function o/p question how i is going to the 5
even in the for loop u have mentioned that i
When the loop ends its value is 5,that's why it doesn't go inside it. But since the last value was 5, the setTimeout prints that when it executes.
@@RoadsideCoder with let it will print from 0 to 4 as i
thank you so much bhai it helped a lotttt...
Awesome! Best of luck.
Awesome 👍😎
Good information share piyush i remember, when I khown noting about java script , and by continue pratice now i aware with of most of things as keep posting videos .
Thanks a lot Rajat, glad to hear your story.
Deep copy and shallow copy aur uske use cases ka ek video dal do, wo important hai interview k liye, btw you're doing great job buddy 👏
Okay
Tell me the difference or why we need use function expression and iife
oh bhai thoda regular raho .
excelent video bro
Great video
Do more videos .. Expecting dialy
Thanku Bhaiya
Function expression : when a variable is assigned to an anonymous function .
- what are fc functions . Basically we can pass functions like variable
- what is iife immediately invoked function expression we can call a function without explicitly invoking it elsewhere .
-let has block scope whereas var doesnt have block scope
-functions are hoisted completely
-hoisting initialized the local scope separately .
-spread and rest operator
-rest parameter must be the last formal parameter !!!!!!!!!!!
-callback function : function passed to another function
-arrow function : syntax different , implicit return , arguments keyword is not defined inside an arrow function , this keyword inside arrow function refers to global scope
Superb 👍❤️
Thanks!!
the answer at 14:42 is undefined right ?
very informative
You explain it so well , loved tNice tutorials tutorial.
MDN is the best resource to learn js ..
I am preparing for the interview If I got a job then surely I will name my kid as your name 🫠🫠
Phir kya huva😅
can we please get the advance version of Arrow VS Normal functions
Is it possible to make an internal transition from frontend to backend or full stack or vice versa or change tech stack while working inside FAANG companies or startups.
@RoadsideCoder, thanks for this series and also for the React interview question series. I have this doubt from long time could you please answer this.
*doubt in section 10 of this video*.
you put i * 1000 in the time of setTimeOut second parameter so why it is consoling after every 1 second. yaha par 5 iteration hona hai(0, 1, 2, 3, 4) so for the first time i = 0, and for the second time i = 1, and for the third time i =2 and so on. so the value is different every time then why the console is printing after every 1 second.
Please respond. Thank you
Can you explain reactjs local persistence
Please make a video on react interview questions
Functions are first class Objects/Functions in JavaScript.
Can you make series for MERN interview questions
Please make videos on machine coding round asked questions 🙇
Yes, definitely
Sir please make DSA in javascript also sir there is no content on youtube..about DSA in javascript please make DSA video also it will be very helpful for us......❤
Yes I have planned that!
amazing
Sir❤
please make videos js interview questions
First class function or higher order function
Oops in detail plz.. thanks
Bro could you please show how to path redirect in react js
Bhai react ke questions bhi dal do
He gives a shraap at the end - “Your code will get errors if you don’t subscribe” 😂
Explain high order functions
Checkout my next video on closures
@akshaymarch7 did it before it was cool! Huge respect for the man really. And kudos to guys like you who are helping us learn over top of what we learned from NamasteJs
Piyush broo I want complete javascript knowledge can you please provide sources piyush broo and along with practices
Build projects, mate! As many as you can! Play around
hi, i dint understand your question number 7. solution. Why did 'var' print 5 evrytime when it was initialzed from 0 in for() loop. Can u please explain..??
for loop executes way faster than settimout function when the funactions are called by the memory queue for each second they Var value will be 5 so its will print 5 5 5 5
Js array methods se IQ bana do bhai
interview questions on javascrit is to find out if you know how javascript's syntaxes and rules are all over the place
How to import SVG as react component in vite react typescript I check all solutions on the internet but nothing works please help me.
Is JavaScript is same as DSA ???? because these type of questions i use to solve in dsa
Bro i have some problem in react + mui combination could you please help
Switch to NextJs
Lesser third party dependency
13-oct
💥
💯👌👌
🙏🙏
One more scenario:
fun();
var fun = function () { console.log("hello"); }
This will not execute
It will give Type error: fun is not a function
Bro agar 2 week ne ek video daloge toh flow nhi bntaa
Jldi dalne ki kosis karunga. Its hard to manage with job.
Hi bro
Hey
how the f**k the output is displayed in the console of the browser without doing console.log in the function scope topic at 7:54
Hi everybody. I just interviewed for a javascript developer position. Is the entry level. But the company gives 2 tests. iq test and java test. I don't understand what kind. 😆
Lol
Really very useful questions bro. please make DSA videos bro. those are also asking in the interview.
Reallyy a worth watching all the videoss 😍,,,,, u making all the points clr and crisp . Plz make the videos for await asyn vs promise difference , and interview qstns related to tht concepts
Thanks a lot ❤️
Bhai I want Some Information about Inshort clone and Crypto Hunter clone app costing ?
Bhai Please Reply if its Possible?
sure, what is it?
this in normal function: Merko kisne bulaya be (user object ne)
this in arrow function: Mere bap ko kisne bulaya be (papa ke papa ne which is globalObject)
Callback hell is missing ....... When you are explaining callback function you should have include the callback hell as well ..
Rest is perfectly fine
check further videos bro, I have acompletely different section for that. This video is for basics
callback hell is not relevant here, check promises video
Mdn is also fan of roadside coder .😂😂
Hahah
Spread operator always be last one😶😶😶
Koun koun khan sir के app se आया है
which app?
var username='Addy negative';
var user={
rc1:()=>{
console.log('my name is '+this.username)
},
rc2(){
console.log('my name is '+this.username)
}
}
user.rc1(); // "my name is Addy negative"
user.rc2(); // "my name is undefined"
Why closure property is not working for rc2() ?????