-
Notifications
You must be signed in to change notification settings - Fork 0
initial commit, datatypes project #1
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: gh-pages
Are you sure you want to change the base?
Conversation
reneemeyer
left a comment
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.
Good start, please switch back to this branch, address the comments below, and push to the branch.
| const day = date.getDay(); | ||
| const hour = date.getHours(); | ||
| const minute = date.getMinutes(); | ||
| console.log("today is " + [day] + " " + [hour] + ":" + [minute]); |
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 needs to be a function that returns today's date
|
|
||
|
|
||
| const number = (x) => { | ||
| console.log(toString(x)); |
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.
return, don't console log
|
|
||
|
|
||
| const string = (number) => { | ||
| console.log(Number(number)); |
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.
return, don't console log
|
|
||
|
|
||
| const type = (datatype) => { | ||
| console.log(typeof datatype); |
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.
return, don't console log
|
|
||
|
|
||
| const add = (x, y) => { | ||
| console.log (x + y); |
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.
return, don't console log
| const c = 12; | ||
|
|
||
| function twoTrue() { | ||
| if (b>a && c>b) { |
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 function evaluates if 9 is greater than 6 and if 12 is greater than 9. I need a function that takes in ANY two arguments and evaluates if they're both truthy.
| twoTrue(); | ||
|
|
||
| const oneTrue = (x,y) => { | ||
| if (x>y || x==y) { |
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 function evaluates if x is greater than y or if x is equal to y. I need a function that evaluates if x is truthy or if y is truthy.
| oneTrue(3,1); | ||
|
|
||
| const noneTrue = (x,y) => { | ||
| if (!x>y && !x==y) { |
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 function evaluates if x is less than y or if x is not equal to y. I need a function that evaluates if both x and y are falsy
Checkpoint Rubric
This is the rubric that your instructor will use to grade your checkpoints. Please do not edit.
Checkpoint 1
Checkpoint 2
Checkpoint 3