From e847f1af4d2946a28b08627583c4c224ac50eeac Mon Sep 17 00:00:00 2001 From: christopher abraham Date: Sat, 21 Aug 2021 21:21:43 +0100 Subject: [PATCH] fist commit --- CHESSBOARD ASSG/chesseboard.js | 17 +++++++++++++++++ CHESSBOARD ASSG/index.html | 13 +++++++++++++ FIZZY/Fuzz.js | 16 ++++++++++++++++ FIZZY/index.html | 13 +++++++++++++ 4 files changed, 59 insertions(+) create mode 100644 CHESSBOARD ASSG/chesseboard.js create mode 100644 CHESSBOARD ASSG/index.html create mode 100644 FIZZY/Fuzz.js create mode 100644 FIZZY/index.html diff --git a/CHESSBOARD ASSG/chesseboard.js b/CHESSBOARD ASSG/chesseboard.js new file mode 100644 index 0000000..e44834a --- /dev/null +++ b/CHESSBOARD ASSG/chesseboard.js @@ -0,0 +1,17 @@ + size = 10; + + grid = "" + + for (var i = 1; i <= size; i++) { + for (var j = 1; j <= size; j++) { + if (i % 2 === 0) { + grid+= "# " + } else { + grid+= " #" + } + } + grid+= "\n" + } + + + console.log(grid) \ No newline at end of file diff --git a/CHESSBOARD ASSG/index.html b/CHESSBOARD ASSG/index.html new file mode 100644 index 0000000..bc3fb70 --- /dev/null +++ b/CHESSBOARD ASSG/index.html @@ -0,0 +1,13 @@ + + + + + + + Chessboard + + + + + + \ No newline at end of file diff --git a/FIZZY/Fuzz.js b/FIZZY/Fuzz.js new file mode 100644 index 0000000..3c6c110 --- /dev/null +++ b/FIZZY/Fuzz.js @@ -0,0 +1,16 @@ +for (var i=1; i <= 20; i++) +{ + if (i % 15 == 0){ + console.log("FizzBuzz") + } + else if (i % 3 == 0) + { + console.log("Fizz"); + } + else if (i % 5 == 0){ + console.log("Buzz"); + } + else{ + console.log(i) + } +}; \ No newline at end of file diff --git a/FIZZY/index.html b/FIZZY/index.html new file mode 100644 index 0000000..df9e978 --- /dev/null +++ b/FIZZY/index.html @@ -0,0 +1,13 @@ + + + + + + + Fizzbuzz + + + + + + \ No newline at end of file