hw07_12.html 221 B

1234567891011
  1. <header>
  2. <h1>Destruct array</h1>
  3. </header>
  4. <body>
  5. <script>
  6. let arr = [1, 2, 3, 4, 5, "a", "b", "c"];
  7. let { 0: odd1, 2: odd2, 4: odd3, 1: even1, 3: even2, ...letters } = arr;
  8. </script>
  9. </body>