From 1d33c58f02c988d86f67f21587f9a7f8c18687d6 Mon Sep 17 00:00:00 2001 From: Awen Lelu Date: Thu, 8 Jan 2026 16:25:20 +0100 Subject: [PATCH] fizzbuzz --- fizzbuzz/awen_lelu.html | 19 +++++++++++++++++++ test.js | 31 +++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 fizzbuzz/awen_lelu.html create mode 100644 test.js diff --git a/fizzbuzz/awen_lelu.html b/fizzbuzz/awen_lelu.html new file mode 100644 index 0000000..196a96c --- /dev/null +++ b/fizzbuzz/awen_lelu.html @@ -0,0 +1,19 @@ + + + + \ No newline at end of file diff --git a/test.js b/test.js new file mode 100644 index 0000000..300ded8 --- /dev/null +++ b/test.js @@ -0,0 +1,31 @@ + +const films = [ + { + titre: "bloodpsort", + année: 1997 + }, + { + titre: "die hard", + année: 1999, + acteurCelebre: "Bruce willis" + }] + +console.log(films) +console.log(films[0]) +console.log(films.map(film => { + return { + ...film, + titreAvecActeur: film.acteurCelebre ? `${film.titre} avec ${film.acteurCelebre}` : undefined + } +})) + +const new_film = { + titre: "thunderman", + année: 2025 +} + + +console.log([...films, new_film]) + +films.push(new_film) +console.log(films)