Skip to content

Commit cf56885

Browse files
corrected mistakes
1 parent fd33d1e commit cf56885

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

js-core/homeworks/homework-2/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88

99
<script src="src/main.js"></script>
1010
</body>
11-
</html>
11+
</html>

js-core/homeworks/homework-2/src/main.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ console.log(myObj);
4343

4444
//task5
4545
let frameworks = [4.7, 'Angular', '6Angular', 'React/Redux'];
46+
let react = frameworks[frameworks.length - 1];
47+
let angular4 = `${frameworks[1]}${Math.floor(frameworks[0])}`;
4648
let x =
4749
'google released ' +
4850
'new version' +
@@ -51,10 +53,10 @@ let x =
5153
Math.floor(frameworks[0]) +
5254
' ' +
5355
'But real speed is ' +
54-
`${frameworks[frameworks.length - 1]}`;
56+
`${react}`;
5557
let x1 =
56-
`google released new version ${frameworks[1]}${Math.floor(frameworks[0])} ` +
57-
`But real speed is ${frameworks[frameworks.length - 1]}`;
58+
`google released new version ${angular4} ` +
59+
`But real speed is ${react}`;
5860

5961
console.log(x);
60-
console.log(x1);
62+
console.log(x1);

0 commit comments

Comments
 (0)