-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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 // |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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}`); |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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"; |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
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"; |
There was a problem hiding this comment.
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}`; |
There was a problem hiding this comment.
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" || |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you
Learners, PR Template
Self checklist
Changelist
Briefly explain your PR.
Questions
Ask any questions you have for your reviewer.