Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c93cfdd

Browse files
committed
Commit all deleted and modified files.
1 parent d1b3b59 commit c93cfdd

21 files changed

+24
-215
lines changed

.DS_Store

0 Bytes
Binary file not shown.

README.md

Lines changed: 0 additions & 104 deletions
This file was deleted.

Week1/practice-exercises/.vscode/launch.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
"version": "0.2.0",
66
"configurations": [
7-
87

98
]
109
}

Week1/practice-exercises/4-log-string.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@
44
*/
55

66
// 1. Declare a variable myString and assign a string to it. Use your full name, including spaces, as the content for the string.
7-
7+
var myString = "Peter Funk";
88

99
// 2. Write a console.log statement in which you explain in words what you think the value of the string is.
10-
10+
console.log("I think the value of the string is the full name I've just assigned to it");
1111

1212
// 3. Now console.log the variable myString.
13-
13+
console.log(myString);
1414

1515
// 4. Now reassign to the variable myString a new string.
16-
16+
myString = "Tony Allen & Jeff Mills"
1717

1818
// 5. Just like what you did before write a console.log statement that explains in words what you think will be logged to the console.
19-
19+
console.log("I think the value of the string is the new full name I've reassigned to it");
2020

2121
// 6. Now console.log myString again.
22-
22+
console.log(myString);
2323

Week1/practice-exercises/5-round-number.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,19 @@
33
*/
44

55
// 1. Declare a variable z and assign the number 7.25 to it.
6-
6+
const z = 7.65;
77

88
// 2. Write a console.log statement in which you log the value of z.
9-
9+
console.log(z);
1010

1111
// 3. Declare another variable a that has the value of z but rounded to the nearest integer.
12-
12+
const a = Math.round(z);
1313

1414
// 4. Write a console.log statement in which you log the value of a.
15-
15+
console.log(a);
1616

1717
// 5. So now we have z and a find a way to compare the two values and log true if a is greater than z or false if a is smaller than z.
18+
console.log (a > z);
19+
if (a == z) {
20+
console.log("a is equal to z");
21+
}

Week1/practice-exercises/6-log-animals.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,23 @@
33
*/
44

55
// 1. Declare variable and assign to it an empty array. Make sure that the name of the variable indicates it contains more than 1 item. For example items instead of item.
6-
6+
var myThings = [];
77

88
// 2. Write a console.log statement that explains in words what you think the value of the array is.
9-
9+
console.log("I think the value of the array will be an empty array as it has been initialized like that");
1010

1111
// 3. Write a console.log statement that logs the array.
12-
12+
console.log(myThings);
1313

1414
// 4. Create a new variable with an array that has 3 of your favorite animals, each in a different string. Make sure the name of the variables says something about what the variable contains.
15-
15+
var myFavouriteAnimals = ['cheetah', 'dolphin', 'hawk'];
1616

1717
// 5. Write a console.log statement that logs the second array.
18-
18+
console.log(myFavouriteAnimals);
1919

2020
// 6. Add a statement that adds another string ("Piglet)" to the array of animals.
21+
myFavouriteAnimals.push('piglet');
2122

2223

2324
// 7. Write a console.log statement that logs the second array!
24-
25-
25+
console.log(myFavouriteAnimals);
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
/**
1+
/**
22
* Follow the commented steps to write a piece of code.
33
*/
44

55
// 1. Declare a variable called mySentence and initialize it with the following string: "Programming is so interesting!".
6+
var mySentence = "Programming is so interesting!";
67

78

89
// 2. Figure out (using Google) how to get the length of mySentence. Then write a console.log statement to log the length of mySentence.
9-
10+
console.log(mySentence.length);

assets/black-box-input-output.png

-5.58 KB
Binary file not shown.

assets/do_while.jpg

-17.7 KB
Binary file not shown.

assets/for_loop.jpg

-36.7 KB
Binary file not shown.

assets/humanbody.jpg

-28.3 KB
Binary file not shown.

assets/image-datatypes.jpg

-23.1 KB
Binary file not shown.

assets/javascript.png

-26.2 KB
Binary file not shown.

assets/new-pull-request.png

-73.6 KB
Binary file not shown.

assets/scopes.png

-39.2 KB
Binary file not shown.

assets/submit-homework.png

-1.12 MB
Binary file not shown.

assets/week1-uday.png

-1.24 MB
Binary file not shown.

assets/weekflow.png

-259 KB
Binary file not shown.

assets/while-loop.jpg

-19.1 KB
Binary file not shown.

hand-in-homework-guide.md

Lines changed: 0 additions & 44 deletions
This file was deleted.

review/README.md

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)