1// Renaming
2// ----------------------------------------------
3const { bar: foo } = { bar: 123 };
4bar // Uncaught ReferenceError: bar is not defined
5foo // 123
6
7
8// Renaming with default value
9// ----------------------------------------------
10const { bar: foo = 123 } = { potato: 456 };
11bar // Uncaught ReferenceError: bar is not defined
12foo // 123
13potato // Uncaught ReferenceError: potato is not defined