Object-oriented Programming in JavaScript: Made Super Simple | Mosh

Object-oriented Programming in JavaScript: Made Super Simple | Mosh

Programming with Mosh

6 лет назад

1,932,176 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Alex Manuel Sommer
Alex Manuel Sommer - 30.08.2023 00:00

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

Ответить
Toufiquzzaman Sabbir
Toufiquzzaman Sabbir - 28.07.2023 07:30

What is the name of theme/color code you're using?

Ответить
Ferdaus
Ferdaus - 22.07.2023 05:39

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 "

Ответить
Relly Bautista
Relly Bautista - 14.06.2023 04:45

i love you mosh your a life saver.

Ответить
Narasimha Casturi
Narasimha Casturi - 09.06.2023 16:15

You are super Mosh

Ответить
game
game - 08.06.2023 00:05

how come the full course link is broken ?

Ответить
Danyah Hussein
Danyah Hussein - 24.05.2023 17:50

Thanks a lot Mosh, it was truly informative tutorial

Ответить
can erzin
can erzin - 05.05.2023 16:44

@programmingwithmosh isn't it the part about abstraction , encapsulation.

Ответить
SKY
SKY - 01.05.2023 13:45

good

Ответить
a a
a a - 25.04.2023 01:10

عالی سلطان❤️

Ответить
Rizal Haris
Rizal Haris - 23.04.2023 19:10

Can you suggest a best book for javascript

Ответить
Ebesu Gabriel
Ebesu Gabriel - 23.04.2023 15:25

Mosh we need the continuation

Ответить
Kyle Myers
Kyle Myers - 17.04.2023 21:49

Awesome video! Why was there Arugula on the spaghetti?

Ответить
Think Programmer
Think Programmer - 17.04.2023 17:41

Hi, good video. What software do you use to make those presentations??

Ответить
xAlcatraaaZ
xAlcatraaaZ - 10.04.2023 06:10

You would be a billionare If you would get 1% of what ppl learned from u

Ответить
Sohaib Shaheen
Sohaib Shaheen - 09.04.2023 18:49

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;

Ответить
calisthenics Greece
calisthenics Greece - 07.04.2023 21:16

Now we also have classes 🎉🎉🎉

Ответить
kundan Kumar
kundan Kumar - 27.03.2023 21:01

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();

Ответить
DOPETAG
DOPETAG - 26.03.2023 03:14

You are the man! You explain things in a really simple way. Thank you for your work!

Ответить
The Man
The Man - 19.03.2023 22:19

What a messed up tutorial. I went for Traversy Media's instead. Much relevant and understandable. This one is weird.

Ответить
D -hob
D -hob - 18.03.2023 13:16

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 :)

Ответить
PH SUN MONITOR
PH SUN MONITOR - 17.03.2023 15:42

You made the hard to grasp so easy.

Ответить
Mister L
Mister L - 14.03.2023 03:36

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

Ответить
bucharest creepypasta&giumbuşluc
bucharest creepypasta&giumbuşluc - 19.02.2023 19:55

what do you mean there is no concept of "classes" in javascript , lol?

Ответить
محمد سلوم
محمد سلوم - 16.02.2023 21:44

music in the video is so noise, please don't put it again

Ответить
SUPEN TAMU
SUPEN TAMU - 16.02.2023 14:14

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

Ответить
ophelia
ophelia - 08.02.2023 20:30

can we say by creating objects with a constructor, we are actually using some type of encapsulation?

Ответить
Ahmad Muqadas
Ahmad Muqadas - 06.02.2023 21:22

im so confused when he says in javascript we don't have concept of classes while we do have class in ES6.

Ответить
Ivan Olivas
Ivan Olivas - 06.02.2023 07:04

Thank you❤️

Ответить
Evgenii Kozhushko
Evgenii Kozhushko - 05.02.2023 04:24

So..

Ответить
Amin Teymuri
Amin Teymuri - 04.02.2023 01:47

can't believe that Hamedani isn't persian from Iran!

Ответить
Brian
Brian - 29.01.2023 00:24

Very usefull , thank you Mosh

Ответить
Charlie B
Charlie B - 26.01.2023 18:58

Great tutorials. Can anyone explain what this does, or has Mosh taken it out of context?

Circle.call({}, 1);

In particular the 1.

Thanks

Ответить
Tritera Erlangga
Tritera Erlangga - 23.01.2023 10:51

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?

Ответить
Jennifer L
Jennifer L - 22.01.2023 16:35

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.

Ответить
Abdourahmane Diallo
Abdourahmane Diallo - 20.01.2023 18:30

never got it it's only me but JavaScript is really difficult for me. And that's my first language that I learn.

Ответить
Yuri Rech
Yuri Rech - 19.01.2023 14:53

Amazing tutorial! Thanks a lot

Ответить
Ricardo Suazo
Ricardo Suazo - 10.01.2023 01:37

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?

Ответить
Far Seer40
Far Seer40 - 02.01.2023 14:03

as a begginner i have no idea what is actually happening

Ответить
Josh El
Josh El - 22.12.2022 04:39

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

Ответить