Hi! I'm Mike from New York!

Report a typo

Write a function constructor User and call it via a constant user to show the following object:

{
    name: "Mike",
    age: 23,
    city: "New York"
}

Sample Input 1:

Sample Output 1:

User { name: 'Mike', age: 23, city: 'New York' }
Write a program in JavaScript
function User() {
}

const user;
___

Create a free account to access the full topic