Which variables does this nested destructuring with renaming create?
const book = {
title: "Dune",
author: { first: "Frank", last: "Herbert" },
};
const { title: heading, author: { last } } = book;
console.log(heading, last);
console.log(typeof title);
console.log(author);
The answer
Work out every line it logs, in order. Then check.
Checking your sign-in…