Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Sprint-1/1-key-exercises/1-count.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ count = count + 1;

// Line 1 is a variable declaration, creating the count variable with an initial value of 0
// Describe what line 3 is doing, in particular focus on what = is doing
// I have made a change to test the trainee tracker bot, please ignore this pull request
a
2 changes: 1 addition & 1 deletion Sprint-1/1-key-exercises/2-initials.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ let lastName = "Johnson";
let initials = ``;

// https://www.google.com/search?q=get+first+character+of+string+mdn

a
3 changes: 2 additions & 1 deletion Sprint-1/1-key-exercises/3-paths.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ console.log(`The base part of ${filePath} is ${base}`);
const dir = ;
const ext = ;

// https://www.google.com/search?q=slice+mdn
// https://www.google.com/search?q=slice+mdn
a
1 change: 1 addition & 0 deletions Sprint-1/1-key-exercises/4-random.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ const num = Math.floor(Math.random() * (maximum - minimum + 1)) + minimum;
// Try breaking down the expression and using documentation to explain what it means
// It will help to think about the order in which expressions are evaluated
// Try logging the value of num and running the program several times to build an idea of what the program is doing
a
1 change: 1 addition & 0 deletions Sprint-1/1-key-exercises/extra file
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
a
1 change: 1 addition & 0 deletions Sprint-1/1-key-exercises/extra file 2
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sa
1 change: 1 addition & 0 deletions Sprint-1/1-key-exercises/extra file 3
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sss
1 change: 1 addition & 0 deletions Sprint-1/1-key-exercises/extra file 4
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sss
1 change: 1 addition & 0 deletions Sprint-1/1-key-exercises/extra file 4 (1)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sss
1 change: 1 addition & 0 deletions Sprint-1/1-key-exercises/extra file 4 (10)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sss
1 change: 1 addition & 0 deletions Sprint-1/1-key-exercises/extra file 4 (11)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sss
1 change: 1 addition & 0 deletions Sprint-1/1-key-exercises/extra file 4 (12)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sss
1 change: 1 addition & 0 deletions Sprint-1/1-key-exercises/extra file 4 (13)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sss
1 change: 1 addition & 0 deletions Sprint-1/1-key-exercises/extra file 4 (14)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sss
1 change: 1 addition & 0 deletions Sprint-1/1-key-exercises/extra file 4 (15)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sss
1 change: 1 addition & 0 deletions Sprint-1/1-key-exercises/extra file 4 (16)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sss
1 change: 1 addition & 0 deletions Sprint-1/1-key-exercises/extra file 4 (17)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sss
1 change: 1 addition & 0 deletions Sprint-1/1-key-exercises/extra file 4 (18)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sss
1 change: 1 addition & 0 deletions Sprint-1/1-key-exercises/extra file 4 (19)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sss
1 change: 1 addition & 0 deletions Sprint-1/1-key-exercises/extra file 4 (2)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sss
1 change: 1 addition & 0 deletions Sprint-1/1-key-exercises/extra file 4 (20)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sss
1 change: 1 addition & 0 deletions Sprint-1/1-key-exercises/extra file 4 (21)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sss
1 change: 1 addition & 0 deletions Sprint-1/1-key-exercises/extra file 4 (22)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sss
1 change: 1 addition & 0 deletions Sprint-1/1-key-exercises/extra file 4 (23)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sss
1 change: 1 addition & 0 deletions Sprint-1/1-key-exercises/extra file 4 (3)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sss
1 change: 1 addition & 0 deletions Sprint-1/1-key-exercises/extra file 4 (4)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sss
1 change: 1 addition & 0 deletions Sprint-1/1-key-exercises/extra file 4 (5)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sss
1 change: 1 addition & 0 deletions Sprint-1/1-key-exercises/extra file 4 (6)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sss
1 change: 1 addition & 0 deletions Sprint-1/1-key-exercises/extra file 4 (7)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sss
1 change: 1 addition & 0 deletions Sprint-1/1-key-exercises/extra file 4 (8)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sss
1 change: 1 addition & 0 deletions Sprint-1/1-key-exercises/extra file 4 (9)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sss
2 changes: 1 addition & 1 deletion Sprint-1/2-mandatory-errors/0.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
This is just an instruction for the first activity - but it is just for human consumption
We don't want the computer to run these 2 lines - how can we solve this problem?
We don't want tahe computer to run these 2 lines - how can we solve this problem?
1 change: 1 addition & 0 deletions Sprint-1/2-mandatory-errors/1.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@

const age = 33;
age = age + 1;
a
1 change: 1 addition & 0 deletions Sprint-1/2-mandatory-errors/2.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@

console.log(`I was born in ${cityOfBirth}`);
const cityOfBirth = "Bolton";
s
1 change: 1 addition & 0 deletions Sprint-1/2-mandatory-errors/3.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ const last4Digits = cardNumber.slice(-4);
// Then run the code and see what error it gives.
// Consider: Why does it give this error? Is this what I predicted? If not, what's different?
// Then try updating the expression last4Digits is assigned to, in order to get the correct value
s
2 changes: 1 addition & 1 deletion Sprint-1/2-mandatory-errors/4.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
const 12HourClockTime = "20:53";
const 24hourClockTime = "08:53";
const 24hourClockTime = "08:53";s
1 change: 1 addition & 0 deletions Sprint-1/3-mandatory-interpret/1-percentage-change.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ console.log(`The percentage change is ${percentageChange}`);
// d) Identify all the lines that are variable declarations

// e) Describe what the expression Number(carPrice.replaceAll(",","")) is doing - what is the purpose of this expression?
s
1 change: 1 addition & 0 deletions Sprint-1/3-mandatory-interpret/2-time-format.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ console.log(result);
// e) What do you think the variable result represents? Can you think of a better name for this variable?

// f) Try experimenting with different values of movieLength. Will this code work for all values of movieLength? Explain your answer
s
1 change: 1 addition & 0 deletions Sprint-1/3-mandatory-interpret/3-to-pounds.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ console.log(`£${pounds}.${pence}`);

// To begin, we can start with
// 1. const penceString = "399p": initialises a string variable with the value "399p"
s
1 change: 1 addition & 0 deletions Sprint-1/4-stretch-explore/chrome.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ Now try invoking the function `prompt` with a string input of `"What is your nam

What effect does calling the `prompt` function have?
What is the return value of `prompt`?
s
1 change: 1 addition & 0 deletions Sprint-1/4-stretch-explore/objects.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ Answer the following questions:

What does `console` store?
What does the syntax `console.log` or `console.assert` mean? In particular, what does the `.` mean?
s
2 changes: 1 addition & 1 deletion Sprint-1/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript
In this section, you'll need to go to each file in `errors` directory and run the file with node to check what the error is. Your task is to interpret the error message and explain why it occurs. The [errors documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors) will help you figure out the solution.

## 3 Interpret

s
In these tasks, you have to interpret a slightly larger program with some syntax / operators / functions that may be unfamiliar.

You must use documentation to make sense of anything unfamiliar - learning how to look things up this way is a fundamental part of being a developer!
Expand Down