This question already has answers here:
Closed 4 years ago.
The following produces a syntax error:
let source,
screenings,
size;
source = {
screenings: 'a',
size: 'b'
};
{
screenings,
size
} = source;
Expected result:
screenings should be equal to 'a'
size should be equal to 'b'