It’s would just give that class a name. If I were to console.log(“car.name”), it would return “Toyota”. The name is local to the classes body.
Ah, I think I understand all the confusing bits about class, thanks for teaching me!
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.