Skip to content

Birmingham | 26-ITP-May | Tobias Amaechina | Sprint 1 | coursework#1369

Open
Tobias-Amaechina wants to merge 55 commits into
CodeYourFuture:mainfrom
Tobias-Amaechina:coursework
Open

Birmingham | 26-ITP-May | Tobias Amaechina | Sprint 1 | coursework#1369
Tobias-Amaechina wants to merge 55 commits into
CodeYourFuture:mainfrom
Tobias-Amaechina:coursework

Conversation

@Tobias-Amaechina

Copy link
Copy Markdown

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

This is PR for coursework Solutions for Sprin-1 of the "Module-Structuring- and Testing-Data Module, it covers key exercises on JavaScript fundamentals (variable assignments, string manipulations , String methods ,random numbers , and mandatory error fixing activities along with interpretation exercises that test understanding of code behaviour and syntax .
1-key-exercises/ — 4 files with solutions for count, initials, paths, and random number generation
2-mandatory-errors/ — 5 files fixing syntax/logic errors (comments, variable scope, type issues, naming)
3-mandatory-interpret/ — 3 files with detailed explanations of code behavior
4-stretch-explore/ — 2 files exploring browser APIs and object concepts

… and it reads number, I have to comment out slice method line of code
… original code to see that error message says TypeError: cardNumber.slice is not a function
…e quotes around the numbers and printing last4Digits
…$ so the the first varible was name was updated to start with doller sign
@Tobias-Amaechina Tobias-Amaechina added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jun 24, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions Bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jun 24, 2026
@cjyuan

cjyuan commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Deleted files are also considered "changes". Here's one way to fix the problem.

Reverting Changes

One way to revert changes to a file is via the git restore command.

First, locate a commit before the file was modified. It could be the first commit you made, assuming the branch started in a clean state.

Next, record the first 7 characters of the commit SHA.

Suppose the file is path/to/file, and you want to restore the file to its state before the commit with SHA 1234567.
The command is:

git restore --source=1234567^ path/to/file

In your case, path/to/file is Sprint-2. Since Sprint-2 is a folder, the restore would apply to all files in Sprint-2. You may want to backup the files in Sprint-2 folder first if you still need them later.

After the file is restored, make a commit and push the changes to GitHub.

@Tobias-Amaechina Tobias-Amaechina added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jun 24, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions Bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jun 24, 2026
@cjyuan

cjyuan commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Did you restore the file content by copying-pasting the code?

Different editors on different operating systems may format the last line differently. The safest way to restore the files are either through git restore or copy/paste the whole files.

@Tobias-Amaechina Tobias-Amaechina added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jun 25, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions Bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jun 25, 2026
@Tobias-Amaechina Tobias-Amaechina added 📅 Sprint 1 Assigned during Sprint 1 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Jun 25, 2026
@github-actions

This comment has been minimized.

1 similar comment
@github-actions

This comment has been minimized.

@github-actions github-actions Bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jun 25, 2026
@Tobias-Amaechina Tobias-Amaechina added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jun 25, 2026
@cjyuan

cjyuan commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Changes look good.

Well done in fixing the branch.

@cjyuan cjyuan added Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Reviewed Volunteer to add when completing a review with trainee action still to take. labels Jun 25, 2026
@Tobias-Amaechina

Tobias-Amaechina commented Jun 25, 2026 via email

Copy link
Copy Markdown
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Complete Volunteer to add when work is complete and all review comments have been addressed. Module-Structuring-And-Testing-Data The name of the module. 📅 Sprint 1 Assigned during Sprint 1 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants