I have some questions with 2 codes, these are the 2 codes: https://repl.it/Cqqr/1, https://repl.it/CqrM/4. So what is prototype really? what is class really? what is the difference between prototype and class?
console.log(myFather)//why here will not show 'nationality: English'? console.log(myFather.nationality)//why here do show ' English'?, console.log(myFather);//why here NOT show the method 'name: [function]'? console.log(myFather.name)//why here do show'function'?