Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nw6|Aman-matoo/Module-Js1 Week:3 #189

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

Ayman-matoo
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

@Ara225 Ara225 left a comment

Choose a reason for hiding this comment

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

Some complaints and unfinished bits I'm afraid. Don't be discouraged but I would recommend having a look at varibles and functions again.

//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.
// to solve this problem to make this line as commit //
Copy link

Choose a reason for hiding this comment

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

👍

Copy link
Author

Choose a reason for hiding this comment

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

yeah, this just has gone my mistake, I didn't want to be pushed.

age = age + 1;
console.log(age);
Copy link

Choose a reason for hiding this comment

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

👍

const cityOfBirth = "Bolton";
console.log(`I was born in ${cityOfBirth}`);
Copy link

Choose a reason for hiding this comment

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

👍

@@ -1,5 +1,6 @@
const cardNumber = 4533787178994213;
const last4Digits = cardNumber.slice(-4);
const last4Digits = String (cardNumber).slice(-4);
console.log(last4Digits);
Copy link

Choose a reason for hiding this comment

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

👍

const HourClockTime24 = "20:53";
const hourClockTime12 = "08:53";
Copy link

Choose a reason for hiding this comment

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

👍

var y = denominator;

var outputVal = x % y;
if (outputVal > 0) {
Copy link

Choose a reason for hiding this comment

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

We need a few more checks to meet the requirements - have a nother look if you have a mo

if (a <= 0 || b <= 0 || c <= 0) {
return "false";
} ;
if (a - b <= c || a + c <= b || b + c <= a) {
Copy link

Choose a reason for hiding this comment

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

👍

Copy link
Author

Choose a reason for hiding this comment

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

thank you

if (hours24 < 0 || hours24 > 23) {
return "Invalid hours in time string"; // check vaild in 24hours fromat
} else if (hours24 === 0) {
return "midnight";
Copy link

Choose a reason for hiding this comment

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

This wouldn't be an exspected output - if you are exspecting hours:minutes midnight would be an annoying output

} else {
const hours12 = hours24 % 12;
const period = hours24 < 12 ? "AM" : "PM";
return `${hours12 === 0 ? 12 : hours12}:${time.slice(3)} ${period}`;
Copy link

Choose a reason for hiding this comment

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

Looks good 👍

@@ -2,7 +2,7 @@ function isVowel(letter) {
return (
letter === "a" ||
letter === "e" ||
letter === "i" ||
// letter === "i" ||
Copy link

Choose a reason for hiding this comment

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

👍

Copy link
Author

Choose a reason for hiding this comment

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

thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants