Skip to content

Commit 9caae05

Browse files
committed
Excerccises Reviews
1 parent 9f1d381 commit 9caae05

File tree

4 files changed

+5
-13
lines changed

4 files changed

+5
-13
lines changed

Sprint-1/1-key-exercises/2-initials.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ let lastName = "Johnson";
1212

1313
let initials= `${firstName.charAt(0)} ${middleName.charAt(0)} ${lastName.charAt(0)}`;
1414
//test
15-
let initialsSecond = `${firstName.charAt(3)} ${middleName.charAt(2)} ${lastName.charAt(4)}`;
15+
//let initialsSecond = `${firstName.charAt(3)} ${middleName.charAt(2)} ${lastName.charAt(4)}`;
1616

17-
console.log (initials, initialsSecond);
17+
console.log (initials);
1818

1919

2020

Sprint-1/1-key-exercises/3-paths.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,3 @@ console.log(`The extension part is: ${extPart}`);
2727

2828
// https://www.google.com/search?q=slice+mdn
2929

30-
31-
// let fruits = ["Banana", "Orange", "Lemon", "Apple", "Mango"];
32-
33-
// let newFruits= fruits.slice(1,3);
34-
35-
// console.log(newFruits)
36-

Sprint-1/3-mandatory-interpret/2-time-format.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ console.log(result);
2828
// d) Interpret line 4, what does the expression assigned to totalMinutes mean?
2929
// line 4 find how many total minutes has in the month lenght.
3030
// first gets te toal seconds less the reminds sconds. it gives the results of total seconds and divides it
31-
//by the 60 ( minutes) = results homw many minutes has in the total lenght
31+
//by the 60 ( minutes) = results homw many minutes has in the total lenght or movieTotalLength
3232
//8784 - 24 ==== 8760
3333
// 8760 / 60 equals 146 minutes
3434

Sprint-1/3-mandatory-interpret/3-to-pounds.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const penceString = "399p";
1+
const penceString = "9p";
22

33
const penceStringWithoutTrailingP = penceString.substring(
44
0,
@@ -36,7 +36,6 @@ console.log(`£${pounds}.${pence}`);
3636
//line 9 to 12= use substring to extrac from start form index 0 and string lenght taking 2 digits = reusl 3
3737

3838
/// lines 14 to 16= const to the pence: the start indext for Substring will be 3-2= 1
39-
// substring with 1 argument wil start on the given indes and goes until the end = 99
40-
// padending (2, "0") will keep only 2 digits =99
39+
// true i got confused . padend make sure the pence part has 2 digits. if it dosen;t padend will add the 0 to it. if it has already 2 digits will stay the same
4140

4241
// line 18 = template literal with the results £3.99

0 commit comments

Comments
 (0)