From 9f4bac75a4985a907b1dc54e2ced485903204644 Mon Sep 17 00:00:00 2001 From: Alice Date: Sat, 21 Mar 2026 14:45:47 +0300 Subject: [PATCH] test 2 --- 5/5,2.js | 6 ++++++ 5/5,3.js | 9 +++++++++ 5/javaScriptTester.html | 6 ++++++ 3 files changed, 21 insertions(+) create mode 100644 5/5,2.js create mode 100644 5/5,3.js create mode 100644 5/javaScriptTester.html diff --git a/5/5,2.js b/5/5,2.js new file mode 100644 index 0000000..fdcd74e --- /dev/null +++ b/5/5,2.js @@ -0,0 +1,6 @@ +let counter = 0; +let step = 4; +do{ + counter = counter + step; + console.log(counter); +} while(counter < 100) \ No newline at end of file diff --git a/5/5,3.js b/5/5,3.js new file mode 100644 index 0000000..096b73c --- /dev/null +++ b/5/5,3.js @@ -0,0 +1,9 @@ +let myWork = []; + +for (let i = 1; i <= 10; i++) { + let status = i % 2 === 0 ? true : false; + let lesson = { name: 'Lesson ' + i, status: status}; + myWork.push(lesson); +} + +console.log(myWork); \ No newline at end of file diff --git a/5/javaScriptTester.html b/5/javaScriptTester.html new file mode 100644 index 0000000..0fc4f37 --- /dev/null +++ b/5/javaScriptTester.html @@ -0,0 +1,6 @@ + + + This goes in the tab of your browser + + + \ No newline at end of file