Skip to content

Commit c05499b

Browse files
author
Balashov Nikita
committed
Update
1 parent f131e95 commit c05499b

File tree

1 file changed

+5
-17
lines changed
  • js-core/homeworks/homework-2/src

1 file changed

+5
-17
lines changed

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

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/*======================= TASK 1 Variant-1(hard) =====================*/
44

5-
function Variant1 () {
5+
function Solution1 () {
66

77
let numbers = [25, 1];
88
let project = 'проект';
@@ -19,7 +19,7 @@ function Variant1 () {
1919

2020
};
2121

22-
Variant1();
22+
Solution1();
2323

2424
/*There is I trained to use .splice*/
2525
//let arr = ['Нужно', 'программистов', 'чтобы', 'сделать', 'project', '?'];
@@ -29,7 +29,7 @@ Variant1();
2929

3030
/*======================= TASK 1 Variant-2(easy) =====================*/
3131

32-
function Variant2 () {
32+
function Solution2 () {
3333

3434
let numbers = [25, 1];
3535
let project = 'проект';
@@ -44,7 +44,7 @@ function Variant2 () {
4444

4545
};
4646

47-
Variant2();
47+
Solutin2();
4848

4949

5050
/*======================= TASK 2 =====================*/
@@ -81,16 +81,4 @@ console.log(myObj);
8181
/*======================= TASK 5 =====================*/
8282

8383
let frameworks = [4.7, 'Angular', '6Angular', 'React/Redux'];
84-
let x = 'google released ' + 'new version ' + frameworks[1] + Math.floor(frameworks[0]) + 'But real speed is ' + `${frameworks[frameworks.length - 1]}`;
85-
86-
87-
88-
89-
90-
91-
92-
93-
94-
95-
96-
84+
let x = `google released new version ${frameworks[1] + Math.floor(frameworks[0])} But real speed is ${frameworks[frameworks.length - 1]}`;

0 commit comments

Comments
 (0)