on the page: https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/Basics
there are several references in the code examples for constructors, for example:
const salva = createPerson('Salva');
salva.name;
salva.introduceSelf();
const frankie = createPerson('Frankie');
frankie.name;
frankie.introduceSelf();
i’m confused about these lines:
salva.name;
and
frankie.name;
on lines by themselves - is this to initialise the object’s properties? it seems to run fine without these lines
it does go on to explain how to use constructors
am i missing something with these lines?