This commit is contained in:
2026-03-21 14:45:47 +03:00
parent 463d03232a
commit 9f4bac75a4
3 changed files with 21 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
let counter = 0;
let step = 4;
do{
counter = counter + step;
console.log(counter);
} while(counter < 100)
+9
View File
@@ -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);
+6
View File
@@ -0,0 +1,6 @@
<!DOCTYPE html>
<html>
<head> <title>This goes in the tab of your browser</title></head>
<body>
<script type="text/javascript" src="5,2.js"></script>
</body>