17_destruct_string.js 118 B

123456
  1. let [number, [s1, s2, s3]] = [1, "abc"];
  2. console.log(number);
  3. console.log(s1);
  4. console.log(s2);
  5. console.log(s3);