Skip to content

Instantly share code, notes, and snippets.

@szemate
szemate / destructuring.js
Last active February 9, 2025 00:26
Destructuring exercises
/**
Exercise 1
Rewrite the code below to use array destructuring instead of assigning each value to a variable.
*/
{
console.log("EXERCISE 1");
let item = ["Egg", 0.25, 12];