NC Patro
1 min readApr 28, 2019

--

No the diagram is right. Circles are function you can see code above the diagram to understand it better. Vehicle is function over there. Vehicle.prototype is an object represented as square and method start() is part of that object.

--

--

NC Patro

Developer | Mentor | Public Speaker | Technical Blogger | Love for Photography and Programming | twitter: @ncpatro