Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
function User (firstName, lastName) {
this.first_Name = firstName
this.last_Name = lastName
}
const showUserDetails = new User('akash', 'rajvanshi')
console.log(showUserDetails) // User { first_Name: 'akash', last_Name: 'rajvanshi' }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.