Комментарии:
Well done, concise, precise. Good job on the actual content.
Very monotonous voice. Nothing to do with the fact that English is not your first language, you just end all your sentences on the same down note. Will not watch other videos, unfortunately. Sorry.
Interviewing next week and need a refresher! Thanks for this!
Ответитьi really love your teaching style it's awesome
Ответитьhow did you bind the clg shortcut with console.log in vs
ОтветитьGreat!
Ответитьplay at 1.2x speed guys
ОтветитьWhen I log to console (batman.fightCrime()) along with output undefined is also logging cam someone explain why it is happening?
Ответитьif he puts the 10hr content of js means no dought you tube got shake with front end and backend devs Mr.vishwas u have seperate fan base how many will agree
ОтветитьSuper helpful
ОтветитьVishwas I am blessed to have discovered you. You are a mentor to me even though we have never met.
ОтветитьThis video was really helpful, thank you for the explanations.
And by the way I may have guessed that you are a fan of DC Comics
Just 10 mins and the way you explain things is perfect. I've watched countless tutorials before and you really explain awesome.
ОтветитьWhen you want to return a function from another function and create a closure, you should return the function itself without invoking it. In other words, you should return inner; (without parentheses) and not inner(); (with parentheses).
Returning the function without invoking it allows you to create a closure, which means that the inner function retains access to its containing scope and any variables defined in that scope
function outer() {
let counter = 0;
function inner() {
counter++;
console.log(counter);
}
return inner; // Return the inner function without invoking it
}
const increment = outer(); // Store the inner function in a variable
increment(); // This logs "1"
increment(); // This logs "2"
Without closure
function outer() {
let counter = 0;
function inner() {
counter++;
console.log(counter);
}
return inner(); // The inner function is immediately invoked when you return it using return inner();
}
outer(); // This logs "1" and returns undefined
outer(); // This logs "1" and returns undefined
thank
ОтветитьThis is pretty much awesome
Ответитьnow i know why javascript is hell, and you are lucifer of it xd
ОтветитьI have question 🙋♂, and how u log the batman.fightCrime ??? Hmm?🧏♀🤔
ОтветитьCan you please start learning talking with a American accent so I can understand you better
ОтветитьVery helpful
ОтветитьWhat does it sound like he is singing 😖😖
Ответитьwhile i wrote closure code it showing sum is not defined in terminal
ОтветитьI didn't properly understood the prototype inheritance part while the class part was simple as I have been doing java and c++
ОтветитьI wish I could bypass this but the monotony of your sentences intonation is not making it natural to listen to your course. As an advise, and I really say that in the best way possible, you might want to take some speech classes, not at all regarding your English level which is perfect, but about the intonation of your sentences. They have all the exact same patters with the exact same drop at the end. This sound like your are not talking naturally and is verry disturbing a distracting. Thank you for the course either way because I do appreciate having some content to learn advanced programming in javascript. Best wishes !
ОтветитьIn this code, th
e outer function returns a reference to the inner function by using return inner. This is called returning a function as a value, or returning a function reference.
If the outer function had used return inner(), it would have returned the result of invoking the inner function instead of a reference to the function itself. This means that the fn variable would be assigned the value returned by inner(), which is undefined since the inner function does not return anything.
By returning a reference to the inner function, we can assign it to the fn variable and then call it multiple times using the fn() syntax. This allows us to create a closure where the inner function retains access to the counter variable even after the outer function has completed execution, as explained in my previous answer.
So, in summary, return inner returns a reference to the inner function, which can be stored and invoked later using the fn() syntax, while return inner() would have returned the result of invoking the inner function immediately, which is not what we want in this case.
Teacher of the year! 🥳 I appreciate that it seems that you know what questions we are going to ask ourselves and you cover every case.
ОтветитьIs there access to the sample code???
ОтветитьI said once and I will say again: "Vishvas for President!"
ОтветитьAmazing tutorial Vishwas. You rock man.
ОтветитьThis is still a good tutorial!
ОтветитьExcellent. Onto advance js 😊
ОтветитьWOW thankyou so much
Ответитьthis keyword --> arrow functions should have been mentioned
Ответитьthanks teacher. prototype part is the most hard one to understand personally
ОтветитьAt the end of prototypal inheritance, if you try to run batman.fightCrime() after batman.getFullName you will get the following error:
TypeError: batman.fightCrime is not a function
How in the world is it not a function? It literally is ;-;
EDIT: So you have to do the inheriting before adding any new prototype functions to SuperHero or it overrides what you put
Thank you..!!!
ОтветитьWould be nice to also see practical applications. For e.g. in currying, the example was too academic. But very good overall, thanks.
ОтветитьFirst improve your language accent. Listening half indian half australin accent is very noisy and tedious as well.
ОтветитьThanks
ОтветитьHow to understand the final step. Didn't get it
ОтветитьWhen I am trying to get batman.fightCrime() it is saying that fightCrime is not a function. Can anyone explain why? When I remove SuperHero.prototype = Object.create(Person.prototype) it works
ОтветитьWhere can we get the source code of this video??????????????????
ОтветитьI look at the Replay Graph at the bottom and I see so many people went back and watched this Keyword...
I'm scared now...
you really gotta work on your intonation, man
ОтветитьNice
ОтветитьOne of the best resources for learning javascript.👍 excellent beginner-friendly examples.
Ответить