diff --git a/index.html b/index.html index f207a2f..66fdfc5 100644 --- a/index.html +++ b/index.html @@ -1,33 +1,33 @@ - - - - - + + + + + Document - - + + - +
-

Hello!

-
-
-
-
-
-
-
-
-
-
+

Hello!

+
+
+
+
+
+
+
+
+
+
- - \ No newline at end of file + + diff --git a/index.js b/index.js index 5248e01..b9c3643 100644 --- a/index.js +++ b/index.js @@ -1,18 +1,22 @@ - array = [1, 2, 3]; -if (array){ - for(array = array.length; array <= 10; array++){ -console.log(array) - } +if (array) { + for (array = array.length; array <= 10; array++) { + console.log(array); + } } - -op = [1, 2, 3] +op = [1, 2, 3]; num = " over here!"; -if (op === 1, 2, 3){ - for (op = 0; op <= 100; op++){ +if ((op === 1, 2, 3)) { + for (op = 0; op <= 100; op++) { console.log(op + num); -} + } } +// array methods + +const newArray = [1, 2, 3, 4]; + +const mutatedArray = newArray.map((num) => num * 2); +console.log(mutatedArray);