• Thursday , 9 April 2020

javaScript object oriented programming tutorial – Understanding Objects Part 1

Code Canyon

JavaScript OOP Fundamentals : Part 1 ( Object Explained )
– Creating Objects
– Adding Properties to Object
– Removing Properties to Object
– Adding Methods to Objects
– Public Methods
– Private Methods
– Closures
– Inner Functions

Javascript functions are first class objects in javascript. IN this training we will understand how to write objects properly. We will use Jsfiddle to practice.

Understanding objects in Js, OOJ, Object oriented javascript , object oriented programming in javascript,
object oriented programming concepts in javascript
javascript object oriented programming
OOP JavaScript
javascript objects
javascript objects explained
javascript objects and methods
javascript object notation
javascript object literal
javascript object Properties methods
javascript function object

#JavaScript #JavaScriptObjects #OOP
*My Udemy Courses


Follow me for technology updates
* https://facebook.com/techsith
* https://www.facebook.com/groups/techsith
* https://twitter.com/techsith1
* https://www.linkedin.com/groups/13677140/
* https://medium.com/@patelhemil

Help me translate this video.
* https://www.youtube.com/timedtext_cs_panel?c=UCbGZKLIHpox2l0whz6_RYyg&tab=2
Note: use https://translate.google.com/ to translate this video to your language. Let me know once you do that so i can give you credit. Thank you in advance.

Original source

3d Ocean

Related Posts


  1. Rupesh Ogale
    February 24, 2020 at 18:03

    Thank you for sharing knowledge we are every hungry to learn from you thank you very much

  2. reshma yasmin
    February 24, 2020 at 18:03

    When u created var tmp = {};

    Then its again private object like anything either function or object created with var keyword inside pizza functional object are private members. Then if being crust, toppings being private members can't be accessed directly from outside, how come tmp is accessible ?

  3. Basanta Sharma
    February 24, 2020 at 18:03

    forgive me if i am wrong.
    is it necessary to capture the variable in a function ????
    because this is also working

    var pizza= function (){

    var toppings=3;

    var tmp ={};


    return tmp;


    var pizzaA =new pizza();


    p.s i am a novice

  4. Martin Bozinovski
    February 24, 2020 at 18:03

    this.veryGood. Nice explanation of OOP. This helped me a lot. Thank you for that.

  5. Vinothini Kantharaj
    February 24, 2020 at 18:03

    Am I doing anything wrong here Sir?
    Why is my code throwing error?
    var pizza = function() {

    var toppings = 3;

    var getToppings = function() {

    return toppings;


    var tmp = {};

    tmp.getToppings = getToppings();

    return tmp;


    var obj = new pizza();


  6. Vinothini Kantharaj
    February 24, 2020 at 18:03

    Hello Sir…thanks for the video…got 1 quick question..
    var pizza = function() {

    var crust="thin";


    var tmp={};


    return this.toppings;


    var getcrust=function()


    return crust;



    return tmp;


    var obj=new pizza();


    I dont get constructor details in ouput…Instead, I get, ƒ Object() { [native code] }…can you please explain

  7. Dzintars Klavins
    February 24, 2020 at 18:03

    Thank you for great explanation. Watching this in 2019. when we have classes but i was not able understand this object concept. 🙂

  8. Raj dung
    February 24, 2020 at 18:03

    Very handy

  9. balleda chandrahas
    February 24, 2020 at 18:03

    Video is very annoying for its zooming in and zooming out frequently…eyes started to strain

  10. ved ravula
    February 24, 2020 at 18:03

    Yours clear and precise explanation with sample codes is the best i have come across till now. Thank you !!!!

  11. Lenroy Quashie
    February 24, 2020 at 18:03

    Such pure explanation! Quite clear and not rushed in your approach. A job well done!!

  12. abhijit p
    February 24, 2020 at 18:03

    var privateuserdetails=function(){



    var firstname='Name1';

    var self=this;//To access public method or variable inside private


    return this.age+ firstname;


    var getfullname=function(){

    return self.lastname+' '+ firstname;


    var tmp={};


    return tmp;


    var pud=new privateuserdetails();





    While running the above piece of code i am geting error as (Uncaught TypeError: pud.getuserdetails is not a function ) .But if i run without creating tmp variable its showing the result.
    Could anyone please help me out on this how to execute without error ? or where exactly i am doing wrong?

  13. Dhinesh Mahe
    February 24, 2020 at 18:03

    Hi @techsith , i have a doubt , why we cant access the properties using dot , is it because the object is a function object , or because the properties are defined using this (ex. 17th min in video) ?

  14. Anitha Kalidass
    February 24, 2020 at 18:03

    No words to thank you for the Superb video. Feel sorry for those who disliked

  15. Angel Chappell
    February 24, 2020 at 18:03

    At the Console.log(Pizza); step the console reads {crust:”thin”, toppings: 3, hasBacon: true, howmanyToppings: f, price: “12$”}

    I triple checked and I have it all the exact same setup, but I do not know how to keep the howmanyToppings: f, from showing. It works when I type in console.log(Pizza.howmanyToppings()); it will show three. Any ideas to fix this? Or can explain what is going on?

  16. Wayne Wallace
    February 24, 2020 at 18:03

    I don't see the closure part in my console?

  17. Rui Xue
    February 24, 2020 at 18:03

    1:07 category of Javascript object
    5:57 create an object with property and methods
    10:58 remove a property
    11:47 the pizza object is a singleton
    12:36 create a function object

  18. Tommy Veee
    February 24, 2020 at 18:03

    i feel like codecademy has prepped me for nothing. finished codecademy pro, and i don't even know what "var" is or "instanceof" or "constructur"…. i am panicking like no tomorrow right now! =(

  19. nakul bhatt
    February 24, 2020 at 18:03

    Great tutorial. Just one thing. You have not defined tmp.getToppings as public. Previously 'this' keyword is used for defining variables and methods as public in this case 'this' is not used still tmp.getToppings is public. How???

  20. Rajesh kumar sahoo
    February 24, 2020 at 18:03

    Thanks for clearly explanation about object concept..

  21. Girban Singha
    February 24, 2020 at 18:03

    thank YOU. I really like the way you explain in details.

  22. Juan S
    February 24, 2020 at 18:03

    Couldn't understand shit

  23. Dragos Marin
    February 24, 2020 at 18:03

    Very well explained !

  24. Osazeme Usen
    February 24, 2020 at 18:03

    Amazing explanation of function objects with a private and public scope. Thanks for making these videos

  25. Ash se
    February 24, 2020 at 18:03

    What i have Learned (correct me if i am am wrong)

    1) Can not use public method or property if using private method.

    2) Semicolon after each sentence if using function object, using Singleton use comma.

    3) if Assigning property outside of object, use " = " instead of " : "

    Thanks tecsith for this tutorial.

  26. NabKishore Barik
    February 24, 2020 at 18:03

    Thanks, explanation skill is realy fruitfull and encouraging to learn. Ant it's easy to easier grab your lesson.

  27. marius marus
    February 24, 2020 at 18:03

    Very impresive

  28. Chandan Kumar
    February 24, 2020 at 18:03

    Great Video ..salute to you….for making closure and object creation crystal clear…..Hats off once again..

  29. M.R.C. Prasad
    February 24, 2020 at 18:03

    The videos are nice and easy to understand. Can you provide angular 2 videos as well in such a practical approach.

  30. Jerrold Donato
    February 24, 2020 at 18:03

    Very helpful tutorial. Thank you.

  31. thriveni aswi
    February 24, 2020 at 18:03

    IT really good tutorial.nice explanation about object.

  32. Elin Riahi
    February 24, 2020 at 18:03

    Create (y) thanks very much

  33. Dipak chavda
    February 24, 2020 at 18:03

    First of all Thank you very much for the nice video. It was really nice explanation but can you explain that how does work with core JavaScript or prototype methods to create and works with class and also want to ask understanding about some rare used methods and functions like new set() in JavaScript.

  34. Jimmy Bakker
    February 24, 2020 at 18:03

    You did a great job on this. I learned a lot.

  35. David Eugene
    February 24, 2020 at 18:03

    It was great, a little hard but great and clear.
    Thank you very much 🙂

  36. Cliff Stamp
    February 24, 2020 at 18:03

    In the last example (at 32:20+) when you return tmp, is there any way to access the crust variable from pizzaA?

  37. Cliff Stamp
    February 24, 2020 at 18:03

    I appreciate how you use easy to understand examples of objects, etc. in your code. While I understand the historical dependency of foo/bar, the over use makes it unintelligible to the learner.

  38. W Gallo
    February 24, 2020 at 18:03

    Awesome, awesome tutorial…thank you soo much…but a curiosity…where did u find the initial background type for the presentation where you outline the topics?? This dotted purple kind dark…where did u find it?

  39. Narendra Kumawat
    February 24, 2020 at 18:03

    Hey man your explanation is awesome

  40. Kaveri Dinesh
    February 24, 2020 at 18:03

    Wow, Superb explanation with great clarity. Thanks a lot its a brilliant video

  41. sonai lmec
    February 24, 2020 at 18:03

    Nice video

  42. Yaswanth Krishna
    February 24, 2020 at 18:03

    Is there any complete course regarding front end which covers HTML 5 , CSS3 , JavaScript , jquery , bootstrap & angular js

Leave A Comment

You must be logged in to post a comment.