From dc04db4eeaa54267d42729bb9780d909276476a8 Mon Sep 17 00:00:00 2001 From: Joe19071991 Date: Fri, 24 Jan 2025 09:49:59 +0100 Subject: [PATCH] =?UTF-8?q?=C3=A9tape=201.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 11 +++++++++++ script.js | 12 ++++++++++++ style.css | 0 3 files changed, 23 insertions(+) create mode 100644 index.html create mode 100644 script.js create mode 100644 style.css diff --git a/index.html b/index.html new file mode 100644 index 0000000..fd1f15c --- /dev/null +++ b/index.html @@ -0,0 +1,11 @@ + + + + + + Sapin + + + + + diff --git a/script.js b/script.js new file mode 100644 index 0000000..b49f7d8 --- /dev/null +++ b/script.js @@ -0,0 +1,12 @@ +// const afficherPointSapin = (hauteur) => {}; +// afficherPointSapin(4); +const afficherEtoiles = (n) => { + let etoile = ""; + for (let i = 1; i <= n; i++) { + etoile += "*"; + console.log(etoile); + } +}; + +afficherEtoiles(2); +afficherEtoiles(5); diff --git a/style.css b/style.css new file mode 100644 index 0000000..e69de29