Skip to content

Commit 60741a8

Browse files
fix revert files
1 parent d58e208 commit 60741a8

42 files changed

Lines changed: 713 additions & 733 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/FUNDING.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
github: CodeYourFuture
2-
custom: https://codeyourfuture.io/donate
1+
github: CodeYourFuture
2+
custom: https://codeyourfuture.io/donate
Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
name: Validate PR Metadata
2-
on:
3-
pull_request_target:
4-
types:
5-
- labeled
6-
- unlabeled
7-
- opened
8-
- edited
9-
- reopened
10-
11-
jobs:
12-
validate_pr_metadata:
13-
runs-on: ubuntu-latest
14-
steps:
15-
- uses: actions/checkout@v4
16-
- uses: CodeYourFuture/actions/validate-pr-metadata@main
17-
with:
18-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1+
name: Validate PR Metadata
2+
on:
3+
pull_request_target:
4+
types:
5+
- labeled
6+
- unlabeled
7+
- opened
8+
- edited
9+
- reopened
10+
11+
jobs:
12+
validate_pr_metadata:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: CodeYourFuture/actions/validate-pr-metadata@main
17+
with:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
node_modules
2-
.DS_Store
3-
.vscode
1+
node_modules
2+
.DS_Store
3+
.vscode
44
**/.DS_Store

.npmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
package-lock=false
1+
package-lock=false

.prettierrc

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
{
2-
"arrowParens": "always",
3-
"bracketSpacing": true,
4-
"embeddedLanguageFormatting": "auto",
5-
"htmlWhitespaceSensitivity": "css",
6-
"insertPragma": false,
7-
"jsxBracketSameLine": false,
8-
"jsxSingleQuote": false,
9-
"printWidth": 80,
10-
"proseWrap": "preserve",
11-
"quoteProps": "as-needed",
12-
"requirePragma": false,
13-
"semi": true,
14-
"singleQuote": false,
15-
"tabWidth": 2,
16-
"trailingComma": "es5",
17-
"useTabs": false,
18-
"vueIndentScriptAndStyle": false
19-
}
1+
{
2+
"arrowParens": "always",
3+
"bracketSpacing": true,
4+
"embeddedLanguageFormatting": "auto",
5+
"htmlWhitespaceSensitivity": "css",
6+
"insertPragma": false,
7+
"jsxBracketSameLine": false,
8+
"jsxSingleQuote": false,
9+
"printWidth": 80,
10+
"proseWrap": "preserve",
11+
"quoteProps": "as-needed",
12+
"requirePragma": false,
13+
"semi": true,
14+
"singleQuote": false,
15+
"tabWidth": 2,
16+
"trailingComma": "es5",
17+
"useTabs": false,
18+
"vueIndentScriptAndStyle": false
19+
}

.vscode/extensions.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
{
2-
"recommendations": [
3-
"esbenp.prettier-vscode",
4-
"dbaeumer.vscode-eslint",
5-
"streetsidesoftware.code-spell-checker",
6-
"eamodio.gitlens",
7-
"ritwickdey.LiveServer",
8-
"vsliveshare.vsliveshare",
9-
"Orta.vscode-jest"
10-
]
11-
}
1+
{
2+
"recommendations": [
3+
"esbenp.prettier-vscode",
4+
"dbaeumer.vscode-eslint",
5+
"streetsidesoftware.code-spell-checker",
6+
"eamodio.gitlens",
7+
"ritwickdey.LiveServer",
8+
"vsliveshare.vsliveshare",
9+
"Orta.vscode-jest"
10+
]
11+
}
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
let firstName = "Creola";
2-
let middleName = "Katherine";
3-
let lastName = "Johnson";
4-
5-
// Declare a variable called initials that stores the first character of each string.
6-
// This should produce the string "CKJ", but you must not write the characters C, K, or J in the code of your solution.
7-
8-
// let initials = ``;
9-
let initials = `${firstName.charAt(0)} ${middleName.charAt(0)} ${lastName.charAt(0)}`;
10-
11-
console.log(initials);
12-
13-
// https://www.google.com/search?q=get+first+character+of+string+mdn
1+
let firstName = "Creola";
2+
let middleName = "Katherine";
3+
let lastName = "Johnson";
4+
5+
// Declare a variable called initials that stores the first character of each string.
6+
// This should produce the string "CKJ", but you must not write the characters C, K, or J in the code of your solution.
7+
8+
// let initials = ``;
9+
let initials = `${firstName.charAt(0)} ${middleName.charAt(0)} ${lastName.charAt(0)}`;
10+
11+
console.log(initials);
12+
13+
// https://www.google.com/search?q=get+first+character+of+string+mdn
Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
// The diagram below shows the different names for parts of a file path on a Unix operating system
2-
3-
// ┌─────────────────────┬────────────┐
4-
// │ dir │ base │
5-
// ├──────┬ ├──────┬─────┤
6-
// │ root │ │ name │ ext │
7-
// " / home/user/dir / file .txt "
8-
// └──────┴──────────────┴──────┴─────┘
9-
10-
// (All spaces in the "" line should be ignored. They are purely for formatting.)
11-
12-
const filePath = "/Users/mitch/cyf/Module-JS1/week-1/interpret/file.txt";
13-
const lastSlashIndex = filePath.lastIndexOf("/");
14-
const base = filePath.slice(lastSlashIndex + 1);
15-
console.log(`The base part of ${filePath} is ${base}`);
16-
17-
// Create a variable to store the dir part of the filePath variable
18-
// Create a variable to store the ext part of the variable
19-
20-
const dir = ;
21-
const ext = ;
22-
1+
// The diagram below shows the different names for parts of a file path on a Unix operating system
2+
3+
// ┌─────────────────────┬────────────┐
4+
// │ dir │ base │
5+
// ├──────┬ ├──────┬─────┤
6+
// │ root │ │ name │ ext │
7+
// " / home/user/dir / file .txt "
8+
// └──────┴──────────────┴──────┴─────┘
9+
10+
// (All spaces in the "" line should be ignored. They are purely for formatting.)
11+
12+
const filePath = "/Users/mitch/cyf/Module-JS1/week-1/interpret/file.txt";
13+
const lastSlashIndex = filePath.lastIndexOf("/");
14+
const base = filePath.slice(lastSlashIndex + 1);
15+
console.log(`The base part of ${filePath} is ${base}`);
16+
17+
// Create a variable to store the dir part of the filePath variable
18+
// Create a variable to store the ext part of the variable
19+
20+
const dir = ;
21+
const ext = ;
22+
2323
// https://www.google.com/search?q=slice+mdn
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
const minimum = 1;
2-
const maximum = 100;
3-
4-
const num = Math.floor(Math.random() * (maximum - minimum + 1)) + minimum;
5-
6-
// In this exercise, you will need to work out what num represents?
7-
// Try breaking down the expression and using documentation to explain what it means
8-
// It will help to think about the order in which expressions are evaluated
9-
// Try logging the value of num and running the program several times to build an idea of what the program is doing
1+
const minimum = 1;
2+
const maximum = 100;
3+
4+
const num = Math.floor(Math.random() * (maximum - minimum + 1)) + minimum;
5+
6+
// In this exercise, you will need to work out what num represents?
7+
// Try breaking down the expression and using documentation to explain what it means
8+
// It will help to think about the order in which expressions are evaluated
9+
// Try logging the value of num and running the program several times to build an idea of what the program is doing

Sprint-1/2-mandatory-errors/0.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
This is just an instruction for the first activity - but it is just for human consumption
1+
This is just an instruction for the first activity - but it is just for human consumption
22
We don't want the computer to run these 2 lines - how can we solve this problem?

0 commit comments

Comments
 (0)