this is declaring variables a and b, giving an error as those are already declared
you can use destructuring without declaring the variables, but using already declared variables
You can not redeclarelet variables inside the same scope. You can reassign their values, not redeclare them.
let uniqueIdentifier = 'Dynamic value';
let uniqueIdentifier; // SyntaxError: Identifier 'uniqueIdentifier' has already been declared
{
let uniqueIdentifier = 'New Scope'
console.log(uniqueIdentifier); // New Scope
}
Just as an aside. The Chrome console allows for let variables to be redeclared. It is meant as a convenience. But if you run both lines of code at the same time it will still throw an error.