Комментарии:
Bro, you did in 1 hour what 3 different computer science profs of my university didnt manage to be able to in 3 years of studying - make me understanding why I write the code I have to write ... they only explain how to write the code on a OOP way but never WHY we do it that way
ОтветитьWhat is the name of theme/color code you're using?
ОтветитьI am starting to learn JS, looks to be a great video in Intermediate level . . .
I need to come back to learn the "Intermediate Level "
i love you mosh your a life saver.
ОтветитьYou are super Mosh
Ответитьhow come the full course link is broken ?
Ответить@programmingwithmosh isn't it the part about abstraction , encapsulation.
Ответитьgood
Ответитьعالی سلطان❤️
ОтветитьCan you suggest a best book for javascript
ОтветитьMosh we need the continuation
ОтветитьAwesome video! Why was there Arugula on the spaghetti?
ОтветитьHi, good video. What software do you use to make those presentations??
ОтветитьYou would be a billionare If you would get 1% of what ppl learned from u
ОтветитьHeads up for those coming to this tutorial in 2023, setting variables like shown in example:
let duration, startTime, endTime = 0;
will actually lead duration to be undefined and when you try to add seconds to it in stop function, it will produce NaN.
Correct way is: let duration = 0, startTime = 0, endTime = 0;
Now we also have classes 🎉🎉🎉
ОтветитьMy solution for stopwatch problem using setInterval-
function StopWatch() {
let time = 0;
let id = null;
this.start = function () {
if (id) {
// throw error
console.log("cannot start again Try stop first");
} else {
id = setInterval(() => {
time += 0.1;
}, 100);
}
};
this.duration = function () {
console.log(time);
};
this.stop = function () {
// throw error
if (!id) console.log("cannot stop again Try start first");
else {
clearInterval(id);
id = null;
}
};
this.reset = function () {
if (id) {
clearInterval(id)
};
id = null;
time = 0;
};
}
let sw = new StopWatch();
You are the man! You explain things in a really simple way. Thank you for your work!
ОтветитьWhat a messed up tutorial. I went for Traversy Media's instead. Much relevant and understandable. This one is weird.
ОтветитьLoving the tutorials but for this video the music while your talking is a bit of distraction especially when your explaining complex one like differentiating the 4 cores. Love the solo piano tho :)
ОтветитьYou made the hard to grasp so easy.
ОтветитьHi Mosh! Really good video, just one thing.
Where you were talking about the ways to get the keys from the object, it's not a good idea use the "key in object" to do so. Its better to use hasOwnProperty.
Why?
Because the first one fo through the whole object (prototype chain and beyond) and the other one just seek on that particular object :D
what do you mean there is no concept of "classes" in javascript , lol?
Ответитьmusic in the video is so noise, please don't put it again
ОтветитьOh Goodness Gracious me What a Presentation👍👋✌ Even in premium paid courses No one teaches like this. Thank you very much GOD Bless you MOSH for your great service to the students community at large
Ответитьcan we say by creating objects with a constructor, we are actually using some type of encapsulation?
Ответитьim so confused when he says in javascript we don't have concept of classes while we do have class in ES6.
ОтветитьThank you❤️
ОтветитьSo..
Ответитьcan't believe that Hamedani isn't persian from Iran!
ОтветитьVery usefull , thank you Mosh
ОтветитьGreat tutorials. Can anyone explain what this does, or has Mosh taken it out of context?
Circle.call({}, 1);
In particular the 1.
Thanks
Hi mosh, what a great video, but I have a question, what is the difference between oop with function and oop with class in javascript?
ОтветитьLove your videos, Mosh ❤I did struggle with tutorials. What really worked for me were Books and Mosh`s Videos.
Edit: For those asking, I started learning with a basic book named Javascript In Less Than 50 Pages, which is very beginner friendly.
Then I improved my skills with another one named Head First Javascript Programming.
With those books I finally learned and wanted to share what worked for me.
never got it it's only me but JavaScript is really difficult for me. And that's my first language that I learn.
ОтветитьAmazing tutorial! Thanks a lot
ОтветитьHi Mosh, great tutorials. I have a problem finding the live server to start programming your exercises, there is an alternative that you can suggest? or some other student can help me?
Ответитьas a begginner i have no idea what is actually happening
ОтветитьTo be honest....I need some enlightenment concerning the exercise, you declared them in a broader scope but assigned their values within the methods....I thought because of scopes the value assigned inside child functions will not affect that of it's parent...please explain to me
Ответить