More Questions: Use Destructuring Assignment to Assign Variables from Arrays

Why does adding const to [a, b] will make the command local?

Your code so far

let a = 8, b = 6;
(() => {
  "use strict";
  // change code below this line
  [a, b] = [6,8];
  // change code above this line
console.log(a); // should be 6
console.log(b); // should be 8

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.80 Safari/537.36.

Link to the challenge:

because const is block scoped, as you are in a function if you do that, the a and b variables are not changed but new variables with the same name but restricted to the local scope are created