Тёмный

The JavaScript SUPER keyword is super! 🦸‍♂️ 

Bro Code
Подписаться 2,2 млн
Просмотров 17 тыс.
50% 1

Опубликовано:

 

1 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 21   
@BroCodez
@BroCodez 11 месяцев назад
// super = keyword is used in classes to call the constructor or // access the properties and methods of a parent (superclass) // this = this object // super = the parent class Animal{ constructor(name, age){ this.name = name; this.age = age; } move(speed){ console.log(`The ${this.name} moves at a speed of ${speed}mph`); } } class Rabbit extends Animal{ constructor(name, age, runSpeed){ super(name, age); this.runSpeed = runSpeed; } run(){ console.log(`This ${this.name} can run`); super.move(this.runSpeed); } } class Fish extends Animal{ constructor(name, age, swimSpeed){ super(name, age); this.swimSpeed = swimSpeed; } swim(){ console.log(`This ${this.name} can swim`); super.move(this.swimSpeed); } } class Hawk extends Animal{ constructor(name, age, flySpeed){ super(name, age); this.flySpeed = flySpeed; } fly(){ console.log(`This ${this.name} can fly`); super.move(this.flySpeed); } } const rabbit = new Rabbit("rabbit", 1, 25); const fish = new Fish("fish", 2, 12); const hawk = new Hawk("hawk", 3, 50); rabbit.run(); fish.swim(); hawk.fly();
@amirkangarloo-v5h
@amirkangarloo-v5h 9 месяцев назад
Thanks 👍
@sfspmusic
@sfspmusic 8 месяцев назад
Bro, are use sure we need super for the move method?
@samcheeseboro6973
@samcheeseboro6973 3 месяца назад
This cleared up extending classes as a whole. This is what I want from coding tutorials. Just show me the moving parts moving,! Don't just repeat the same buzzwords as you plow through convoluted examples.
@omar.abuissa
@omar.abuissa 10 месяцев назад
So I know that this comment don't relate to this video but realy thank you for learning me C#, and I'm writing this comment directly after I finish your course so really thank you too much. ♥
@willhampshire2415
@willhampshire2415 10 месяцев назад
Goat of RU-vid programming tutorials
@NicolasMoryson
@NicolasMoryson 10 месяцев назад
hey could you do a tut for a login page with data bank?with install setup and everything
@shashankatole6968
@shashankatole6968 8 месяцев назад
do you mean this is inheritance? nice explanations👌
@piotrmazgaj
@piotrmazgaj Месяц назад
This is my seal. I have watched the entire video, understood it, and I can explain it in my own words, thus I have gained knowledge. This is my seal.
@noemil6036
@noemil6036 9 месяцев назад
Many thanks, great explanation
@hunin27
@hunin27 11 месяцев назад
Thanks for the video bro! Lots of love ❤
@karem_darwesh
@karem_darwesh 2 месяца назад
Thanks greate explanation
@BluePaneTechnologies-nu4hh
@BluePaneTechnologies-nu4hh Месяц назад
great example great explanation
@Belladonna_khaday
@Belladonna_khaday 2 месяца назад
Thank you so much Bro❤❤
@ibrahimhossen6549
@ibrahimhossen6549 3 месяца назад
❤❤❤
@Keyra_Ren
@Keyra_Ren 6 месяцев назад
Thank you, its really clear!
@SleepyGhst
@SleepyGhst 7 месяцев назад
solid explanation of super()
@Teal_Nameera_Gacha_Offical
@Teal_Nameera_Gacha_Offical 10 месяцев назад
Thanks dude! I really needed this!
@LizyAd
@LizyAd 5 месяцев назад
Thank you so much!!
@Podcast.4.Moments
@Podcast.4.Moments 7 месяцев назад
Thanks
@hunin27
@hunin27 11 месяцев назад
just 6 views???
Далее
JavaScript GETTERS & SETTERS are awesome!!! 📐
13:14
Learn JavaScript INHERITANCE in 7 minutes! 🐇
7:04
JavaScript DESTRUCTURING in 8 minutes! 💥
8:41
Просмотров 21 тыс.
Array Methods in JavaScript | 17 Useful Methods
42:39
Build this JS calculator in 15 minutes! 🖩
15:20
Просмотров 575 тыс.
Learn JavaScript STATIC keyword in 8 minutes! ⚡
8:03
Brutally honest advice for new .NET Web Developers
7:19
What are JavaScript PROMISES? 🤞
12:37
Просмотров 65 тыс.
STOP Using Classes In JavaScript | Prime Reacts
14:02
Просмотров 240 тыс.
Learn JavaScript NESTED OBJECTS easy! 📫
9:14
Просмотров 10 тыс.