-
Notifications
You must be signed in to change notification settings - Fork 166
Coreen Cooper #168
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
base: master
Are you sure you want to change the base?
Coreen Cooper #168
Conversation
This reverts commit 4fc3ad1.
| // // circumference = 2PI * radius // note to self | ||
| // // console.log(Math.PI) //note to self | ||
| // // console.log((2 * Math.PI) * radius) // note to self | ||
| // let circumferenceResult = (Math.round(2 * 3.141592653589793) * radius) |
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.
Nice using Math.PI, keep using it. Also about to do Math.pow(radius, 2)
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.
Thanks for the guidance.
|
|
||
| // Hint: | ||
| // Use the remainder % operator. | ||
| //console.log(123%5) |
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.
Have spaces around operators for better readability.
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.
Will do.
problems/variables.js
Outdated
| // * Years that are divisible by 100 are not leap years if they are not also divisible by 400. | ||
| // * For example 1900 was not a leap year, but 2000 was. Print "Leap year!" or "Not a leap year!" depending on the year you are provided. | ||
|
|
||
| console.log("ran out of time to solve, but I will keep trying. Got stuck on the math.") |
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.
No problem, was a bonus. Good effort!

Hey Corey,
Is the warning: "X Can't automatically merge."normal? If not, do you have any idea what I did wrong?