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 @@ + + +