Skip to content

Commit 7b64e8e

Browse files
committed
Worked on the excercises for sprint1
1 parent b4ccdd9 commit 7b64e8e

4 files changed

Lines changed: 12 additions & 4 deletions

File tree

‎Sprint-2/1-key-exercises/1-count.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ count = count + 1;
44

55
// Line 1 is a variable declaration, creating the count variable with an initial value of 0
66
// Describe what line 3 is doing, in particular focus on what = is doing
7-
//a variable is initialised and assigned a value zero, than it was reassigned additing 1 to its value.
7+
//a variable is initialised and assigned a value zero, than it was reassigned additing 1 to its value

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,12 @@ const lastName = "Johnson";
1111

1212
const initials = `${firstName[0]}${middleName[0]}${lastName[0]}`;
1313

14-
console.log(initials); // Output: CKJ
14+
console.log(initials); // Output: CKJ
15+
16+
17+
18+
19+
20+
21+
22+

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@ console.log(ext)
5757
// we print our result in the console
5858
//slice(startIndex, endIndex)
5959
// means, start here and stop here. we are doing this to seprate the dir from base so we need to tell it where to start and where to end, hence that is why we use slice method,
60-
// my comments needs correcting to look profissional -_-
60+
//my comments needs correcting to look profissional -_-

‎Sprint-2/1-key-exercises/4-random.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ const num = Math.floor(Math.random() * (maximum - minimum + 1)) + minimum;
1919
// * is a multiplication operator
2020
// to understand what is going on we need to understand what the floor and random methods do
2121
//Math.floor (rounds down to the nearest whole number) and than pass it to Math.floor
22-
// we are asking the program to round whatever result we have to the nearest whole number
22+
// we are asking the program to round whatever result we have to the nearest whole number.

0 commit comments

Comments
 (0)