Skip to content
RED SAG Skills
easyStudy question · answer published in JavaScript interview questions, so no pointsjavascriptdestructuring

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