This is a JavaScript solution to the day 7 puzzle of Advent of Code, solved in the style of functional programming. You can try this puzzle at https://adventofcode.com/2022/day/7
Topics covered:
implementing a tree data structure using nested objects
deep copying an object
deep equality for arrays
Object.values and Object.entries
executing multiple lines of code with a ternary operator
object destructuring with reassigned variable names
optional chaining operator (?.)
Join the Coding Serenity discord server: / discord
Thanks for watching!
Sur cette page du site, vous pouvez voir la vidéo en ligne Advent of Code 2022 Day 7 | Functional JavaScript durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Coding Serenity 08 décembre 2022, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 981 fois et il a aimé 19 téléspectateurs. Bon visionnage!