• Thursday , 28 May 2020

Object Oriented JavaScript Tutorial #10 – Prototype

Code Canyon



Hey gang, in this object oriented JavaScript video, we’ll be looking at the prototype object and how we can use it to give our objects methods.

πŸ±β€πŸ’» Course Links:

– VS Code editor – https://code.visualstudio.com/
– GitHub repository (course files) – https://github.com/iamshaunjp/object-oriented-js
– JavaScript for Beginners – https://www.youtube.com/watch?v=qoSksQ4s_hg&list=PL4cUxeGkcC9i9Ae2D9Ee1RvylH38dKuET

πŸ€‘ Donate @ https://www.paypal.me/thenetninja

πŸŽ“Find me on Udemy @ https://www.udemy.com/user/47fd83f6-5e4a-4e87-a0f0-519ac51f91b6/

πŸ‘Ύ Video thumbnail artwork by PixelSwish @ https://www.youtube.com/channel/UCGKSD3mitWl5UpMxZzaIrRA

Original source

3d Ocean

Related Posts

24 Comments

  1. Pari Star
    December 17, 2019 at 07:54

    #programming

  2. taro
    December 17, 2019 at 07:54

    thanks!

  3. Neshat Ademi
    December 17, 2019 at 07:54

    After so many tutorials and online courses I've finally understand the OOJ especially prototypes! Which means, the netninja is the best teacher on YouTube!

    Thank you very much!

  4. 1stinfamous
    December 17, 2019 at 07:54

    Thanks mate for your explanations from France πŸ‡«πŸ‡· !

  5. 0the0ambient0
    December 17, 2019 at 07:54

    Excellent description

  6. Bilal Malik
    December 17, 2019 at 07:54

    very nice explanation.
    Thanks Ninja

  7. simon oates
    December 17, 2019 at 07:54

    Boy, I've looked at lots of videos and this is the best.

  8. Selcuk ONUK
    December 17, 2019 at 07:54

    The best explanation of prototypes. Thanks a lot.

  9. Steven Barnes
    December 17, 2019 at 07:54

    Why should we use prototype instead of just including the function within the User function as that also worked? What are the advantages of doing this?

  10. Hua Trung
    December 17, 2019 at 07:54

    very clearly ! thank you !

  11. Daniel Dias
    December 17, 2019 at 07:54

    could we put:
    user.__proto__.login = function(){…}

    ?

  12. Felix T.
    December 17, 2019 at 07:54

    Great tutorial, thank you very much!
    I have one question: why don't you create an object for the User.prototype like User.prototype = { login(){…}, logout(){…}} ?

  13. Sarvar Sharapov
    December 17, 2019 at 07:54

    very precise and understandable explanations. Thank you

  14. abhineet
    December 17, 2019 at 07:54

    Better way to define custom prototype:
    User.prototype = {
    login(){
    this.online = true;
    console.log(this.email, 'has logged in');
    },
    logout(){
    this.online = false;
    console.log(this.email, 'has logged out');
    }
    }

  15. Nelson Ongiti
    December 17, 2019 at 07:54

    Hi i have finished your OOP please if you know of any start ups that can use a rockie i would like to join. I am Nelson From nairobi Kenya

  16. CODERS NEVER QUIT
    December 17, 2019 at 07:54

    Hey shaun your videos are amazing… Can you teach us about tensorflow.js only js expert can teach us

  17. HabelFoc _
    December 17, 2019 at 07:54

    Why we cannot use 'arrow function' on creating prototype? anyone?

    i try to use like this but, but seem like they don't recognize 'this' keyword? (return undefined)

    User.prototype.login = () => {
    this.online = true;
    console.log(this.email, 'has logged in');
    }

  18. David Eugene
    December 17, 2019 at 07:54

    Really excellent!

  19. David Eugene
    December 17, 2019 at 07:54

    Salut le Monde πŸ™‚

    Merci beaucoup πŸ˜‰

  20. Fortune Ekeruo
    December 17, 2019 at 07:54

    Wow, this is awesome! Thanks Ninja

  21. Raymond Michael
    December 17, 2019 at 07:54

    Two simultaneously notification ~ ninja videos.
    Thanks bro

  22. Gururaj Moger
    December 17, 2019 at 07:54

    Please do more on javascript programmings..

  23. King Rayhan
    December 17, 2019 at 07:54

    Hey netninja, where are part 1 ~10 ?

Leave A Comment

You must be logged in to post a comment.