ThatAIguyA world of ideas

THE CONSCIOUSNESS ATLAS
Read. Experiment. Follow the evidence.

ConsciousnessLearn · Explore · Joseph Anady

Janady13/School-Work / School Work/Array Destructuring./index.js

Source identity, revision, and recovered contents.

GitHub sourceSource text recovered

Source identity

FieldRecorded value
Source typeGitHub source
Original recordJanady13/School-Work / School Work/Array Destructuring./index.js
DateNot specified in source
RepositoryJanady13/School-Work
Revision4a666c890caf7c43c47d0572dbcc287373c7a78e
Branchmain
Path or archive memberSchool Work/Array Destructuring./index.js
Original SHA-2564e952a791c58dd36a12c1a69e9aea6b73b8670fef2ac1c3c6d6739dc88fed5c1
Git blob SHAddfa5cd71747ed4506b457730cb94b191a22d34b
Reading-copy SHA-2564e952a791c58dd36a12c1a69e9aea6b73b8670fef2ac1c3c6d6739dc88fed5c1

Original source ↗

Recovered source transcript

// Challenge: // In our restaurant, the chef has some favourite dishes in two different categories. // The chef loves all dishes that start with "S", while the rest are regular dishes // Use array destructoring to create arrays of the chefs favourite dishes of meat and // fish, and to create arrays of the regular meat and fish dishes const fishDishes = ['Salmon Rillettes', 'Grilled Tuna Provencal', 'Fish and Chips'] const meatDishes = ['Lasagna', 'Spaghetti', 'Satay Chicken Skewers'] // Modify these four variables first let [chefsFishDishes, ...regularFishDishes] = fishDishes let [regularMeatDishes ,...chefsMeatDishes] = meatDishes; // Finally, use the spread operator to create these two arrays as well let chefsDishes = [...chefsMeatDishes, chefsFishDishes] let regularDishes = [...regularFishDishes, regularMeatDishes]

Search equations, builds, manuscript text, and recovered sources.