Generation

generate functionMon, 14 Nov 2022

create an object to hold object

function Person(firstName, lastName) { this.firstName = firstName; this.lastName = lastName; } var person = new Person('john', 'Smith');

Javascript
Generate More

Questions about programming?Chat with your personal AI assistant