var person = function Person(name) { this.name = name; } const p1 = new person("John Smith") console.log(p1.name);