Skip to content

Glasgow | ITP-Jan-26 | Fattouma Ouannassi | Sprint 3 | Coursework 3 implement and rewrite#1080

Open
FAprogrammerO wants to merge 2 commits intoCodeYourFuture:mainfrom
FAprogrammerO:coursework/sprint-3-implement-and-rewrite
Open

Glasgow | ITP-Jan-26 | Fattouma Ouannassi | Sprint 3 | Coursework 3 implement and rewrite#1080
FAprogrammerO wants to merge 2 commits intoCodeYourFuture:mainfrom
FAprogrammerO:coursework/sprint-3-implement-and-rewrite

Conversation

@FAprogrammerO
Copy link

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 project (sprint 3) focuses on learning how to use JavaScript methods and test them.

Questions

/

…ment and rewrite

<!--

You must title your PR like this:

Region | Cohort | FirstName LastName | Sprint | Assignment Title

For example,

London | 25-ITP-May | Carol Owen | Sprint 1 | Alarm Clock

Fill in the template below - remove any sections that don't apply.

Complete the self checklist - replace each empty box in the checklist [ ] with a [x].

Add the label "Needs Review" and you will get review.

Respond to volunteer reviews until the volunteer marks it as "Complete".

Please note: if the PR template is not filled as described above, an automatic GitHub bot will give feedback in the "Conversation" tab of the pull request and not allow the "Needs Review" label to be added until it's fixed.

-->

## Learners, PR Template

Self checklist

- [x] I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
- [x] My changes meet the requirements of the task
- [x] I have tested my changes
- [x] My changes follow the [style guide](https://curriculum.codeyourfuture.io/guides/reviewing/style-guide/)

## Changelist

This project (sprint 3) focuses on learning how to use JavaScript methods and test them.
## Questions

/
@FAprogrammerO FAprogrammerO added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 26, 2026
@FAprogrammerO FAprogrammerO changed the title Glasgow | Jan-26 | Fattouma Ouannassi | Sprint 3 | Coursework 3 implement and rewrite Glasgow | ITP-Jan-26 | Fattouma Ouannassi | Sprint 3 | Coursework 3 implement and rewrite Feb 27, 2026
@JaypeeLan JaypeeLan added Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Feb 27, 2026
// TODO: Implement this function

// Implement a function getAngleType
function getAngleType(angle) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function assumes the input is always a valid number. You may want to guard against non-number values (e.g. "90", null, NaN) to avoid unexpected behaviour.


// Implement a function getAngleType
function getAngleType(angle) {
if (angle > 0 && angle < 90) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The range checks work correctly, but the logic can be simplified. Try to see if you can reduce the number of checks, to make the code cleaner.

@JaypeeLan JaypeeLan added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Reviewed Volunteer to add when completing a review with trainee action still to take.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants