DEV Community

Discussion on: Introduction to OOP in Javascript

Collapse
 
harveylewis profile image
Harvey Lewis

In the first example, I believe the code at the bottom should be
'Console.log(citizen.name)'
Rather than
'Console.log(a.name)'
no?

Collapse
 
ndiecodes profile image
Ndifreke Friday

Yes you are right... I kinda changed to citize at a late hour.... forgot that one

Editing it now... tanx