No video

Top 10 JavaScript Interview Questions ( Part 2 )

  Рет қаралды 291,482

techsith

techsith

Күн бұрын

Top 10 Commonly asked JavaScript Interview Questions and possible answers.
*My Udemy Courses
www.udemy.com/...
www.udemy.com/...
For more interview questions checkout
*www.fullstack....
Follow me for technology updates
* / techsith
* / techsith
* / techsith1
* / 13677140
* / patelhemil
Help me translate this video.
* www.youtube.co...
Note: use translate.goog... to translate this video to your language. Let me know once you do that so i can give you credit. Thank you in advance.

Пікірлер: 321
@andriiauziak1178
@andriiauziak1178 5 жыл бұрын
0:33 - what is prototypal inheritance 2:58 - what is the difference between function declaration & function expression 4:21 - what is promises and why do we use it 6:43 - setTimeout() 8:23 - what is closure and how do we use it
@aasthawadhwa3291
@aasthawadhwa3291 4 жыл бұрын
Nice tutorial before appearing for JS interview. I had gone through a few interviews and was asked most of these questions and also them: 1. Spread Operator 2. Bind, Call, Apply in JS 3. Array Questions (deep copy and shallow copy of array using assign;also map property used many a times) 4. Ques based on Object Keys Hope it helps! (I would appreciate if you make some short video on these topics as well)
@vstvlogs878
@vstvlogs878 4 жыл бұрын
5)When do we use Arrow functions? Arrow functions make our code more concise, and simplify function scoping and the this keyword. By using arrow functions, we avoid having to type the function keyword, return keyword (it’s implicit in arrow functions), and curly brackets. This keyword in arrow functions A normal function has its this keyword ie the scope of this keyword in normal function is its function. whereas in arrow fnction, fat arrow does not have its this, fat arrow takes this from its parent function Which takes us to a conclusion that you should use fat arrow/arrow function when you want to use this of parent function, in case you want to use this of current block/function you should use normal function. for eg take this eg. //profile is an object const profile = { firstName: '', lastName: '', setName: function(name){ let splitName = function(n){ let nameArray = n.split(' '); this.firstName = nameArray[0]; this.lastName = nameArray[1]; } splitName(name) } } profile.setNmae("vikram sharma); console.log(profile.firstName) this code will not give us any output as "this" keyword in normal function will look for its value in the same function only(which is this) setName: function(name){ let splitName = function(n){ let nameArray = n.split(' '); this.firstName = nameArray[0]; this.lastName = nameArray[1]; } , whereas if we use arrow function const profile = { firstName: '', lastName: '', setName: (name) => { let splitName = (n) => { let nameArray = n.split(' '); this.firstName = nameArray[0]; this.lastName = nameArray[1]; } splitName(name) } } profile.setNmae("vikram sharma); console.log(profile.firstName) This will give the output as vikram, becasue fat arrow automatically sets this keyword to setName ie its parent. 6) What is prototype inheritance? Every object has a property called prototype, by which you can add methods and properties to it and when you create other objects from these objects, the newly created object will automatically inherit the properties of the parent, not by including in its own properties but instead it uses from its parent. The way it works is, when you call a particular object or a method it first looks at its own properties if its there and if its not there it will look in its parents properties, therfore this way objects are much lighter. eg: let car = (model) => {this.model = model} car.prototype.getModel = () => return this.model let toyota = car("toyota") console.log(toyota.getModel()) ie we inherited model property from our method car in another method getModel by protyping car 7) what is the difference between function declaration & function expression? console.log(funcD()) ---> function declaration //ie its available to us even before its declaration console.log(funcE()) ---> error // its saved to a var and will behave like one, moreover it has a variable scope function funcD() { console.log("function declaration") } let funcE = function() { console.log("function expression") } 8) what is promises and why do we use it? We use promises to simplify a callback hell 9) What is setTimeout()? 10) what are closures? When a func returns another func, the returning function will hold its environment "Closures are functions that refer to independent (free) variables. In other words, the function defined in the closure 'remembers' the environment in which it was created let obj = function(){ let i=0; return { setI(k) { i=k; } getI() {return i} }}
@enesugur2034
@enesugur2034 2 жыл бұрын
thank you!
@jbrabec6811
@jbrabec6811 4 жыл бұрын
I feel like he's feeding my brain fresh organic vegetables. You know what I'm talkin about.
@EvolutionMachinetoMan
@EvolutionMachinetoMan 2 жыл бұрын
No
@abd9939
@abd9939 2 жыл бұрын
Yes
@paullauren316
@paullauren316 Жыл бұрын
😂
@tentx652
@tentx652 3 жыл бұрын
8 out 10 questions were asked in my interview, after listening to your tutorial , i am pretty confident about everything .thank you so much gurujiii, all the best!! great going !!!
@MohammadShahid85
@MohammadShahid85 5 жыл бұрын
Thanks, almost all above questions were asked in my interview and I had no clue about a few of them and I was rejected, your tutorials are too good for the beginners. keep motivating us... thanks a ton.
@Techsithtube
@Techsithtube 5 жыл бұрын
Keep on learning Mohd. Learn fundamentals and everything else will fall in place.
@Albertmars32
@Albertmars32 7 жыл бұрын
you are the best vanilla javascript teacher ive seen them all from paid ones to free ones you are the best one if not the top 3
@Techsithtube
@Techsithtube 7 жыл бұрын
Thanks for watching :)
@carolinadelaossa7383
@carolinadelaossa7383 4 жыл бұрын
omg, last week I literally got asked all these questions except for the prototypal inheritance and the function declaration vs expression thing. I hate to say that at that time I didn't find your video so I wasn't able to answer what a closure was. And they also gave me a tricky settimeout exercise. Anyways, they asked for a second interview and here I go again! Thanks a lot for the info!
@luisl8851
@luisl8851 4 жыл бұрын
Also would like to add that Promise actually gets queued up in the microtask queue while setTimeout gets queued up in the callback queue. The prioritization of the event loop is that microtask queue -> callback. Therefore if you try to do a setTimeout before a promise ,let say to fetch some API , a promise will actually get returned first.
@dmytrodemydenko
@dmytrodemydenko 6 жыл бұрын
what is prototypal inheritance? 0:27 what is the difference between function declaration and function expression? 2:57 what is promises and why do we use it? 4:22 setTimeout() 6:42 what is closure and how do use it? 8:22
@arctiggs
@arctiggs 3 жыл бұрын
Just wanted to comment that you CAN pass a declared function in as a variable. You give the function a name in the declaration. So in his example, you'd be able to pass funcD into funcE (if funcE accepts arguments), so something like...funcE(funcD) would console log out both strings (again...if funcE calls the argument passed in)
@AllKindzzzz
@AllKindzzzz 3 жыл бұрын
I've got an interview next week and these videos are solid interview prep gold. Thank you :)
@ErosNicolau
@ErosNicolau 6 жыл бұрын
I watched this tutorial after having watched your other tutorials on Closure, Promise, Call-Apply-Bind, and I have to tell you all three questions puzzled me in my latest interview - so thank you again for sharing these nuggets and helping us better understand problems that puzzled us in the first place!
@srikanthalva
@srikanthalva 6 жыл бұрын
Few of the Questions asked in my Interviews so far. 1. [x,y,z] = "abc"; Console.log([x,y,z]) 2. Why does Javascript have both null and undefined? What was the need to retain undefined? 3. for(var i =0; i
@Techsithtube
@Techsithtube 6 жыл бұрын
These are some good questions. Were you able to answer them?
@srikanthalva
@srikanthalva 6 жыл бұрын
I wasn't able to answer most of these. Few Questions mentioned in your video were also asked in the Interview. Your videos has helped me understand JS better. Thank You.
@victorliafook
@victorliafook 4 жыл бұрын
Great videos (both of them), thank you. Having said that, I could spot one mistake. At 4:00 its stated that to pass a function as an argument to another function we would have to use a function expression. This is not true, we can pass a function declaration as well. Also, it is worth mentioning that function declarations are hoisted whilst function expressions are not.
@Prakhar281993
@Prakhar281993 4 жыл бұрын
Hoisting is already mentioned
@Caio540100
@Caio540100 7 жыл бұрын
I am learning more with your videos... I gave up reading so many book to learn simple things. Thanks
@Techsithtube
@Techsithtube 7 жыл бұрын
These days books are not very useful as there are better examples available online. Keep up the good work !
@MissionVivekananda
@MissionVivekananda 7 жыл бұрын
My first JS interview was fun, ya I didn't do well. But when I was asked those questions, I felt that I knew the answers but not able to answer them. The questions include closures, inheritance and ES... That was fun. And now I am getting into JS stuff ... And these videos are helping me. Thanks :)
@Techsithtube
@Techsithtube 7 жыл бұрын
I feel you . I know most of the time you know the answer however when interviewer asks our mind just freezes and then it freezes more :) Good luck with your interview. Just relax and take your time .
@susanjacobs95
@susanjacobs95 6 жыл бұрын
I found these tutorials to be VERY helpful and great interview prep.
@Techsithtube
@Techsithtube 6 жыл бұрын
Thanks for watching! :)
@scarletovergods
@scarletovergods 7 жыл бұрын
watched the whole series && learned a lot. thanks!
@adamgordon862
@adamgordon862 5 жыл бұрын
Awesome video! This is probably the 10th-odd video I've seen of yours and they've always been very clear and easily to follow. Keep up the great work!
@Techsithtube
@Techsithtube 5 жыл бұрын
Thanks Adam. I am glad you like it. :)
@kanishkshrivastava6462
@kanishkshrivastava6462 3 жыл бұрын
Hey Buddy, This is the best javascript channel i have seen who covers the topic which are hands on daily javascript programming and The content of this channel is very helpful for beginners as well as mid senior JS developer who is appearning in JS interviews. I want to say you something that why you dont try some aws and node js advance practices that will be very helpful for the subscribers to understand modern trends. Thanks For all your help!
@everyonesview
@everyonesview 3 жыл бұрын
I think you have the knack for imparting knowledge - I love it! Cheers.
@devonmarantz3324
@devonmarantz3324 5 жыл бұрын
Thank you for your help. I wish I would have seen this before my last interview. I like how clear and concise you are with your explanations but I wish that your microphone was a little bit louder.
@Roarzambimaru
@Roarzambimaru 2 жыл бұрын
I wasn’t aware that Closure was an actual property that can be accessed. Thank you for showing me this!
@guptaankit2791
@guptaankit2791 7 жыл бұрын
Aweosme...just love your videos...they are very helpful...
@rajashekhar433
@rajashekhar433 7 жыл бұрын
Thanks for posting this video and It's clear and depth ...please provide more videos of Js and Angular
@PrabhakarBangalore
@PrabhakarBangalore 7 жыл бұрын
I am a big fan of urs, You explain things in very efficient way, One question "How does JS manage multiple events in parallel, like click, input, etc. when it is interpreted & single threaded?"
@Techsithtube
@Techsithtube 7 жыл бұрын
JavaScript is more optimal in that sense. it is single threaded and the way it works is very simple. anything that is synchronous will get on the stack and gets executed one by one. However anything asynchronous gets on a queue where it waits for its turn. and when its ready to be executed it waits for the stack to be empty . I have a tutorial on settimeout where i explain it more clearly. ALso look at tutorial for webworkers. which allows you to simulate multithreading with some restrictions.
@subhrajyotibehura34
@subhrajyotibehura34 6 жыл бұрын
Thanks for sharing this video... From these 10 questions, i got 8 questions in my interviews. Please share more questions from javascript and angular.
@Techsithtube
@Techsithtube 6 жыл бұрын
Here is a playlist with more interview questions. kzfaq.info/sun/PL7pEw9n3GkoWn5TcqAdmSzXcvC3d_tfAh
@joyandlove7710
@joyandlove7710 6 жыл бұрын
It is very helpful, I was asked some of the questions already. Thanks!
@ashack
@ashack 5 жыл бұрын
Great questions! I’d like to suggest switching to a dark theme for your IDE. Watching this on a large display, your editor is just a wall of white light and difficult to read. Thanks for your videos!
@Techsithtube
@Techsithtube 5 жыл бұрын
I have already switched for newer videos. Thanks for watching!
@arun-ql8nc
@arun-ql8nc 7 жыл бұрын
Thank you..missed call Bind and Apply in this video..frequently asked and we struggle to answer that..anyhow i checked it in advanced javascript tutorials
@Techsithtube
@Techsithtube 7 жыл бұрын
Yes that is true. I have been asked that many times. Thanks for pointing out.
@spacewad8745
@spacewad8745 6 жыл бұрын
Well... he has tutorials on them and also has a video discussing their implementations... So, go check it out
@igobortolon
@igobortolon 4 жыл бұрын
Awesome video and explanation (part 1 as well). It really helps me with the interviews! Thank you very much!
@himanshupandeynitcs
@himanshupandeynitcs 6 жыл бұрын
Hast's off man, you doing really well job. Also add because I have faced multiple time this quest. "Event Bubbling" & "Event Delegation".
@Techsithtube
@Techsithtube 6 жыл бұрын
I have tutorial on Event Bubbling also if you want to check it out. Good luck with your interviews.
@himanshupandeynitcs
@himanshupandeynitcs 6 жыл бұрын
Yeah got it, nice one (y) (y)
@thadeuluz
@thadeuluz 7 жыл бұрын
Not sure if this is what he meant at @4:01 but it works fine: function one() { return 1; } function runAndLog(f) { console.log(f()); } runAndLog(one);
@Techsithtube
@Techsithtube 7 жыл бұрын
yes because when you pass function declaration as an argument it converts to a "named function expression" . I would work fine in this case but there can be scoping issues like following would also work but it shouldn't function runAndLog(f) { console.log(f()); } runAndLog(one); function one() { return 1; }
@nikhilsinha2191
@nikhilsinha2191 2 жыл бұрын
my first js interview went terrible as i didn't watched this video but will go for more as it gave me some nice experience
@nkumar5897
@nkumar5897 3 жыл бұрын
This is a hidden treasure I have found. Very informative and nicely put. you are a gem of a person and I really liked the way you have explained the topics with ease.. kudos and keep up the good work and I’ll look forward to more videos from you.
@bettyliu5057
@bettyliu5057 7 жыл бұрын
Thanks for your video! It's very useful. Could you please enable your subtitles caption just as other videos you did before? Thank you so much!
@somesbhowmick2082
@somesbhowmick2082 6 жыл бұрын
Really clear explanation, Really it helps me to clear my concept
@Techsithtube
@Techsithtube 6 жыл бұрын
I am glad it helped. Thanks for watching ! :)
@shahshishir838
@shahshishir838 3 жыл бұрын
Thanks for this video. Yes, closure is a very important topic of Javascript. I have faced it two times.
@Naniy55462
@Naniy55462 7 жыл бұрын
Thank you ,this series is great ,please keep building
@SuperAvinash009
@SuperAvinash009 7 жыл бұрын
Thanks for posting this video it is very helpful for beginners....:-)
@Techsithtube
@Techsithtube 7 жыл бұрын
Thanks for watching!
@haciendadad
@haciendadad 4 жыл бұрын
I really like this guy's videos, seems very real life experience and good examples to illustrate the topic.
@IndianinAmsterdam
@IndianinAmsterdam 6 жыл бұрын
Great explaination!! Simple & crisp.. :) Keep going..
@cloriswang2576
@cloriswang2576 3 жыл бұрын
I have an interview tomorrow and mostly about javascript. I have a feeling that I will fail it but many thanks that I found and watched your video. Very helpful!!
@shevangpatel3537
@shevangpatel3537 2 жыл бұрын
how many questions ask from this 2 videos??
@shevangpatel3537
@shevangpatel3537 2 жыл бұрын
I have also tomorrow an interview and I have not much knowledge about javascript is these 2 videos of interview preparation enough ??
@cloriswang2576
@cloriswang2576 2 жыл бұрын
@@shevangpatel3537 Good luck to you! My interview question is about React though...
@shevangpatel3537
@shevangpatel3537 2 жыл бұрын
@@cloriswang2576 my interview is about angular still I have a time please advice me which sourse i prefer to crack the interview
@TheEricapiano
@TheEricapiano 5 жыл бұрын
for a junior dev interview i have been asked what are media queries and how to you code them, == vs ===, and var vs. let vs. const :)
@Techsithtube
@Techsithtube 5 жыл бұрын
Yes there are very common questions. Everyone should prepare for that. :)
@swanandfulari9692
@swanandfulari9692 6 жыл бұрын
Hats off to your patience. What a great and simple way to explain things. Thanks sir.
@Techsithtube
@Techsithtube 6 жыл бұрын
:) Thanks for watching!
@TaTar88T
@TaTar88T 3 жыл бұрын
Thanks, man, you showed the best example for closures understanding, nice job!
@22pradeeppathak
@22pradeeppathak 6 жыл бұрын
Thanks for the video. The example you used for prototypal inheritance was actually the function definition using prototypes. There is no child parent relation anywhere. Correct me if I am wrong.
@Techsithtube
@Techsithtube 6 жыл бұрын
Its called function constructors. Base class and subClass relationship is established using prototype chain. I actually have series on Object Oriented JavaScript where I explain this in more detail. Please check it out.
@sudhansu23
@sudhansu23 5 жыл бұрын
@techsith, 4:10, I think you can pass function declaration as an argument, should work. Not sure if I understood you properly, because the following code works, function count(val){ console.log(val); } var t = function(func){ func(5); } t(count); // prints `5` In JavaScript, functions are high order objects.
@Techsithtube
@Techsithtube 5 жыл бұрын
As soon as you pass function desecration to another function it becomes function expression becase it hold inside a variable inside the function. so its no longer function declaration.
@sudhansu23
@sudhansu23 5 жыл бұрын
@@Techsithtube yes, as a variable in the function agruments per se. I think it would be worth mentioning that, else people might think it is not possible, or it would throw an error if we pass a reference to a function declaration as an argument. :)
@tomino133
@tomino133 7 жыл бұрын
What do you think the future holds for Angular? I have tried both Angular and React and Angular comes more natural for whatever reason. With this whole patent thing, could we see more people turn to Angular? I know that Vue is the newest and hottest framework right now but still....
@Techsithtube
@Techsithtube 7 жыл бұрын
I have have used both as well and Angular also feels natural to me. There are companies who would go for it because its a complete solution . So I think it will continue to do good event with all these other frameworks around it.
@sharayujagtap6625
@sharayujagtap6625 4 жыл бұрын
Would like to see video on design patterns in JavaScript. And what to know React is based on which design pattern.
@everydaycode1535
@everydaycode1535 5 жыл бұрын
excellent explanation on prototypical inheritance! thanks
@JoeWong81
@JoeWong81 6 жыл бұрын
Love your videos techsith I just subscribed, keep this series going!! please also provide us with data structures/algorithm questions as well.
@Techsithtube
@Techsithtube 6 жыл бұрын
I also have another channel focused on the algorithm and data structure, it's called interviewnest please check it out.
@elfpimp1
@elfpimp1 6 жыл бұрын
What are your thoughts on this problem solving process: 1: restate the problem 2: work through an example and test for edge cases 3: think about the implementation (Pseudocode) 4: write the code 5: test the code with correct input and edge cases 6: relax at bar after interview if you think you tanked it.. ;0)
@Techsithtube
@Techsithtube 6 жыл бұрын
I would add one more may be around 3, If there are multiple solution than. explain the easiest solution first and say "there might be muliple solutions to this. let me think about it. " and then improve the your work by optimizing it. That would show your ability to improve. BTW, I like the last one. :)
@drwombat
@drwombat 2 жыл бұрын
Around 04:10 I'm 99% sure I understand what you're getting at but an example would be really helpful to solidify the explanation
@ibknl1986
@ibknl1986 5 жыл бұрын
I subscribed, your way of explaining is very good and relaxing
@Techsithtube
@Techsithtube 5 жыл бұрын
Thank you Ismail for subscribing!
@patrykjanik1706
@patrykjanik1706 7 жыл бұрын
To 4:00 here is example of using function declarations and function statement as a callback to funcktions : jsbin.com/cohozaciwa/edit?js,output
@logicbuffer2162
@logicbuffer2162 7 жыл бұрын
Patryk Janik exactly my question too. It would be helpful if this was answered.
@MCA96
@MCA96 4 жыл бұрын
Thanks for the nice tutorial, but I wish the answers were displayed on a slideshow so we could take notes easily.
@Niloctronic
@Niloctronic 4 жыл бұрын
In last example you returned an obj with 2 functions (setI and getI) that didn't had the function keyword ih their declaration. I honestly thought that wouldn't work! Thanks for the tutorial.
@Niloctronic
@Niloctronic 4 жыл бұрын
stackoverflow.com/questions/32404617/how-does-this-object-method-definition-work-without-the-function-keyword for those to which this is new.
@HameedKhan-mq4ve
@HameedKhan-mq4ve 3 жыл бұрын
Thanks a lot for feeding us with the Javascript knowledge and preparing for interviews.
@Techsithtube
@Techsithtube 3 жыл бұрын
It's my pleasure
@user-zb5jp4ti1d
@user-zb5jp4ti1d 7 жыл бұрын
v helpful... can i request you to pls do a video on generators that is tied in to a practical use case... a lot of the tutorials on generators seldom go beyond explaining the syntax... thanks again for producing JS content
@MsBijay007
@MsBijay007 7 жыл бұрын
Generators will be replaced with async/await in ES7 which has much easier syntax. I recommend to look into it. It will replace the current promise pattern too (.then .catch).
@ianweber7671
@ianweber7671 5 жыл бұрын
Hi there I am wondering if we can compare the concept of "promises" in javascript to be similar to "delegates" in C#? Are they the same thing? In C#, Delegates are function pointers which are useful for callbacks and checking the current status of another running function while within one. They allow you to pass methods as objects. I am wondering if the two concepts are similar. Surprisingly I never knew about either of these before these last few months, so I have been trying to use delegates in C# but mostly in toy problems so far. I am struggling to understand practical usage for these despite watching and reading many things.
@Techsithtube
@Techsithtube 5 жыл бұрын
I have not used delegates in c# so I cant comment on that.
@radheyvarshney3153
@radheyvarshney3153 4 жыл бұрын
No. Delegates in C# are roughly treated as function pointers. Promise api is very different kind of pattern to do async programming and to provide an easier interface for method chaining. Am I clear? Delegates on the other hand
@giorgimerabishvili8194
@giorgimerabishvili8194 4 жыл бұрын
Just one note: It is considered good practice to name constructor functions with an upper-case first letter.
@creanlis
@creanlis 4 жыл бұрын
you are a god techsith... thank you
@Techsithtube
@Techsithtube 4 жыл бұрын
:) Hanna, thanks for an awesome comment.
@coconachos7497
@coconachos7497 3 жыл бұрын
Awesome tutorial. Thanks
@Techsithtube
@Techsithtube 3 жыл бұрын
Glad it was helpful!
@mathmaticsgun
@mathmaticsgun 5 жыл бұрын
Has the best interview advice from the back of the video.
@jyothikethireddy5712
@jyothikethireddy5712 3 жыл бұрын
It is very useful and please provide oops concepts of javascript sir thankyou for helping us in this way
@pateltapesh505
@pateltapesh505 5 жыл бұрын
Thanks for the good feedback after the tutorial you gave on interview related . It's really helpful and so does the knowledge you shared through your all videos are helpful for a fresher. Hope you post such quick short important questions on web development in future. Thanks
@Techsithtube
@Techsithtube 5 жыл бұрын
Tapesh, I am going to keep posting more videos on Interview Questions.
@yanivsalman9685
@yanivsalman9685 6 жыл бұрын
i got the closure and the promise questions only !.. and it was too hard for me. the others i know . thank you so much. i need to practice es6
@Techsithtube
@Techsithtube 6 жыл бұрын
Yes ES6 is very important these days.
@yanivsalman9685
@yanivsalman9685 6 жыл бұрын
may i have your permission to write all of those questions and answers and share on github in my repository? so i can remember // it will be public i guess.. so this is why i ask .
@Techsithtube
@Techsithtube 6 жыл бұрын
Yes feel free to share publicly. Knowledge is there for sharing
@micold
@micold 6 жыл бұрын
You're the first popping up in KZfaq search result! Would be nice to have a better microphone. Cheers
@codeative
@codeative 5 жыл бұрын
You're so amazing, so clear
@anandshenoy9142
@anandshenoy9142 5 жыл бұрын
Function Declaration type of function can be passed around with proper scopes. I tried this with window scope for now
@mehrdadaghamolaei6915
@mehrdadaghamolaei6915 4 жыл бұрын
04:05, it's not true! you can pass declaration as parameter to another function
@orkunozekin6473
@orkunozekin6473 4 жыл бұрын
That's what I was thinking. He made me doubt myself though
@sunflower-i1g
@sunflower-i1g 7 жыл бұрын
Thanks a lot, very clear explanations. Could you please make videos on common JS coding challenges given at interviews?
@joyvideos1802
@joyvideos1802 4 жыл бұрын
hi! thanks for the lesson & it would be better that u keep your voice in same rhythm, voice going up & down which is hard to hear
@Techsithtube
@Techsithtube 4 жыл бұрын
Titus, this is a old video when i didnt have good audio device, newer videos have better audio.
@saskirakosyan5268
@saskirakosyan5268 3 жыл бұрын
Ledies and gentlemens. he is a good teacher. Yesssss??!
@satyenkasturi
@satyenkasturi 6 жыл бұрын
Very good video. One can get a positive attitude with it. Great job my friend.
@Techsithtube
@Techsithtube 6 жыл бұрын
Thank you satyen , I just released a new video on more interview questions do check it out.
@KishoreKumar-qi9pm
@KishoreKumar-qi9pm 3 жыл бұрын
i am big fan of u and thanks for vedeo, please post videos like this. Gain knowledge and confidence at same time. subscribed:)
@asimgiri4269
@asimgiri4269 4 жыл бұрын
I think you should make a video explaining about Promises in detail.
@Techsithtube
@Techsithtube 4 жыл бұрын
I do have a video specifically on promises. Do check it out.
@remysilvio
@remysilvio 6 жыл бұрын
Thanks for the video! Very enlightening!
@anonyuser1008
@anonyuser1008 5 жыл бұрын
Console.log([] + []) // output: “” Check how array treated internally for explanation
@cheezcola
@cheezcola 6 жыл бұрын
This channel is very helpful. I did not expect it to be this good given that bad meme use for thumbnails.
@Techsithtube
@Techsithtube 6 жыл бұрын
With memes I try to create a theme. Let me know your opinion on what kind of meme you feel are good so I can improve.
@cheezcola
@cheezcola 6 жыл бұрын
Honestly I would not use them at all. They are old memes that take any seriousness of content away. I would just find a logo. You already got a brand with the color and font used. javaScript call apply and bind for example looks so nice compared to ones with rage memes But if they work for you then ignore my opinion. It is just another opinion on the internet. Wish you the best :)
@cheezcola
@cheezcola 6 жыл бұрын
Sorry if that came out the wrong way btw. We all forget there is someone on the other side of the screen. Loved the content so keep it up!
@SSSwain-yl5oi
@SSSwain-yl5oi 3 жыл бұрын
Sir Great video but please improve the Audio Quality.
@shellykapoor7331
@shellykapoor7331 6 жыл бұрын
Great sir, Why not you start your udemy course till now? And I am the beginner I have started watching your videos 2 days ago. These are unique and strong our fundamental concepts.
@Techsithtube
@Techsithtube 6 жыл бұрын
I am actually working on a udemy course. Might release it by end of the august.
@jasonwelsh417
@jasonwelsh417 6 жыл бұрын
You can pass a function declaration as an argument to another function though. function innerF() { console.log('I ran!'); } function outerF(inner) { let a = inner(); } outerF(innerF); // 'I ran!'
@Techsithtube
@Techsithtube 6 жыл бұрын
as soon as you put parentheses around the function declaration it becomes function expression :) ( function innerF() { console.log('I ran!'); })
@jasonwelsh417
@jasonwelsh417 6 жыл бұрын
I did not know that. Thank you. So by putting parentheses around the function you did, say like you do with an IIFE, I understand that this is a function expression, but what I don't understand is how calling a function created as a function declaration inside another function makes the inner function a function expression. For example, if I define a function declaration and then pass it in as a callback in an event listener, it doesn't become a function expression, does it? ex: function myFunc() { // do things } el.addEventListener(event, myFunc);
@jasonwelsh417
@jasonwelsh417 6 жыл бұрын
Actually looking at this I see what you mean now.
@Techsithtube
@Techsithtube 6 жыл бұрын
Yes, Any time you pass a function declaration as an argument to another function , either named or anonymous function. the become function expressions.
@JeevanBManoj
@JeevanBManoj 6 жыл бұрын
By convention, constructor functions meant to be used with new are named with starting Capitals. So I believe it's better to name car at 2:05 as Car
@Techsithtube
@Techsithtube 6 жыл бұрын
That is true.
@anantbhat1731
@anantbhat1731 5 жыл бұрын
Thanks so much for sharing your knowledge....Awesome !!!
@mehrabrafi9496
@mehrabrafi9496 4 жыл бұрын
I had faced a complex question. May not say it complex. But I was not able to answer it. that was something like that:- a) '1' + 1 = ? b) '1' + '1' = ? c) 1 - '1' = ? Ans: a)'11' b) '11' c) 0
@tamannamakkar1839
@tamannamakkar1839 7 жыл бұрын
Well explained...keep posting sir :)
@Techsithtube
@Techsithtube 7 жыл бұрын
Thanks for watching!:)
@parrot785
@parrot785 3 жыл бұрын
4:10 I'm not sure why you said in the video we can't pass function declaration into another function? If we declare a function we can pass it as an argument to another function.
@ironrose6
@ironrose6 6 жыл бұрын
11:31 life lessons learned from admiral Ackbar.
@vamsireddy9713
@vamsireddy9713 5 жыл бұрын
Great job
@adnantariq3346
@adnantariq3346 5 жыл бұрын
at the 4:00 examples difference between function declaration & function expression ; IF you used a VAR instead or a LET for funcE, instead of throwing an error wouldn't it show as a undefined for funcE just like it did for funD?
@user-ng7lr1nd7y
@user-ng7lr1nd7y 5 жыл бұрын
No, it would be the same. That 'undefined' was a 'return value' from the console.log And funcE variable would still be unassigned, so it will give error that undefined is not a function (I think so)
@dadkinson
@dadkinson 6 жыл бұрын
thanks for this. Really threw me that getter & setter methods don't need 'function' keyword in ES6. might be worth mentioning that.
@Techsithtube
@Techsithtube 6 жыл бұрын
yes that is true. I am going to create a third part of this series where I will mention that. Thanks for pointing it out.
@Donewasting
@Donewasting 5 жыл бұрын
Recently found your videos. I just subscribed thanks for your help!
@padmanabangokula6421
@padmanabangokula6421 6 жыл бұрын
Hey Smith, Fantastic video, please increase video volume. Thank you Cheers!
@Techsithtube
@Techsithtube 6 жыл бұрын
Will increase the volume for the next video . thanks for the suggestion!
@padmanabangokula6421
@padmanabangokula6421 6 жыл бұрын
Cool. Thank you.
@mahesh82398
@mahesh82398 7 жыл бұрын
Nice tutorial sir :) Thank you!
@akshaysharma1145
@akshaysharma1145 3 жыл бұрын
your videos are great but please sir its a request next time speak little bit louder, my phone volume is full but some words are not audible.
@avinashsorab5026
@avinashsorab5026 4 жыл бұрын
best explanation for closure
@sayedabdulkarim7086
@sayedabdulkarim7086 5 жыл бұрын
You cannot pass a function declaration to another function, you have to use a function expression.Sir, can you give one example function foo(x) { console.log(x); } var bar = function(func) { func("Hello World!"); } bar(foo); function foo(x) { console.log(x); } var bar = function() { foo('hello world') } bar(); sir its work.
Tricky JavaScript interview questions and answers
21:01
techsith
Рет қаралды 132 М.
wow so cute 🥰
00:20
dednahype
Рет қаралды 31 МЛН
Joker can't swim!#joker #shorts
00:46
Untitled Joker
Рет қаралды 41 МЛН
Tricky JavaScript Interview Questions and Answers
16:35
techsith
Рет қаралды 457 М.
REAL React Interview Questions
8:08
Peter Elbaum
Рет қаралды 189 М.
Javascript Closure tutorial ( Closures Explained )
12:52
techsith
Рет қаралды 543 М.
5 JavaScript Concepts You HAVE TO KNOW
9:38
James Q Quick
Рет қаралды 1,4 МЛН
The Most Legendary Programmers Of All Time
11:49
Aaron Jack
Рет қаралды 552 М.
Top Tricky JavaScript Interview Questions and Answers
15:42
techsith
Рет қаралды 82 М.
How principled coders outperform the competition
11:11
Coderized
Рет қаралды 1,6 МЛН
The Story of Next.js
12:13
uidotdev
Рет қаралды 568 М.
JavaScript Pro Tips - Code This, NOT That
12:37
Fireship
Рет қаралды 2,5 МЛН