Skip to content
RED SAGSkills
easy5 pts · first answer countsjavascriptdestructuring

Rename and default in destructuring

What does this code print?

const user = { name: "Asha" }
const { name: fullName, city = "Dubai" } = user
console.log(fullName, city)
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions