Skip to content

Commit

Permalink
étape 1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe19071991 committed Jan 24, 2025
1 parent e1b0445 commit dc04db4
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
11 changes: 11 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Sapin</title>
<script defer src="script.js"></script>
<link rel="stylesheet" href="style.css" />
</head>
<body></body>
</html>
12 changes: 12 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
@@ -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);
Empty file added style.css
Empty file.

0 comments on commit dc04db4

Please sign in to comment.