Skip to content

Conversation

@Faithy4444
Copy link

Learners, PR Template

Self checklist

  • I have committed my files one by one, on purpose, and for a reason
  • I have titled my PR with COHORT_NAME | FIRST_NAME LAST_NAME | REPO_NAME | WEEK
  • I have tested my changes
  • My changes follow the style guide
  • My changes meet the requirements of this task

Changelist

Briefly explain your PR.

Questions

Ask any questions you have for your reviewer.

Copy link

@Waldo-Strydom Waldo-Strydom left a comment

Choose a reason for hiding this comment

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

Good job

if (angle < 90) return "Acute angle";
if (angle > 90 && angle < 180) return "Obtuse angle";
if (angle === 180) return "Straight angle";
if (angle>180 && angle < 360) return "Reflex angle"

Choose a reason for hiding this comment

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

The proper syntax would be else if or a switch statement.

let rank = card.slice(0, -1);
if (rank === "A") return 11;
if(rank === "K") return 10;
if ( rank === "Q") return 10;

Choose a reason for hiding this comment

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

else if is better or use switch

function getOrdinalNumber(num) {
return "1st";
if (num % 10 === 1)return `${num}st`
if (num % 10 === 2)return `${num}nd`

Choose a reason for hiding this comment

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

else if please, it is the standard

@Waldo-Strydom Waldo-Strydom added Reviewed Volunteer to add when completing a review with trainee action still to take. Complete Volunteer to add when work is complete and all review comments have been addressed. labels Feb 18, 2025
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. 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.

3 participants