Skip to content

Commit b4c662e

Browse files
committed
Address the issues from the pull request comments again
1 parent 3aa28fa commit b4c662e

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ const num = Math.floor(Math.random() * (maximum - minimum + 1)) + minimum;
1010

1111
// num represents a random number in the interval [1,100]
1212
// First, it starts with 100 - 1 + 1, which is equals to 100
13-
// Secondly, it multiply with Math.random(), which the function returns any number in the interval [0,1]
13+
// Secondly, it multiply with Math.random(), which the function returns any number in the interval [0,1)
1414
// Thirdly, Math.floor() rounds down and returns the largest integer less than or equal to a given number
1515
// Finally, it adds 1

Sprint-1/3-mandatory-interpret/1-percentage-change.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ console.log(`The percentage change is ${percentageChange}`);
1212
// Read the code and then answer the questions below
1313

1414
// a) How many function calls are there in this file? Write down all the lines where a function call is made
15-
// Line 4, 5, 10
15+
// 5 (2 × Number(), 2 × replaceAll(), 1 × log())
1616

1717
// b) Run the code and identify the line where the error is coming from - why is this error occurring? How can you fix this problem?
1818
// It's missing a comma between the arguments at line 5 in replaceAll() method

Sprint-1/4-stretch-explore/chrome.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,6 @@ It displays an alert with a textfield where you can enter some text, e.g. John.
2626

2727
What is the return value of `prompt`?
2828

29-
The string returned from the textfield what the user has entered otherwise null if the user left it blank.
29+
If the user has entered text, the return value is a string containing the entered text.
30+
If the user leaves the text field blank and clicks the OK button, the return value is an empty string.
31+
If the user enters a name or leaves the text field blank but clicks the Cancel button, the return value is null.

0 commit comments

Comments
 (0)