test 2
This commit is contained in:
@@ -0,0 +1,6 @@
|
|||||||
|
let counter = 0;
|
||||||
|
let step = 4;
|
||||||
|
do{
|
||||||
|
counter = counter + step;
|
||||||
|
console.log(counter);
|
||||||
|
} while(counter < 100)
|
||||||
@@ -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);
|
||||||
@@ -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>
|
||||||
Reference in New Issue
Block a user