How to explain prototype & class with 2 code examples

How to explain prototype & class with 2 code examples
0

#1

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'?

#2

Maybe this video will help:


#3

i have already watched this video, but it did not give me much clarification, is there any article can explain better?