-
Notifications
You must be signed in to change notification settings - Fork 0
Class 1 Datatypes #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.
Renata, nice job, just a couple of fixes to make. Make sure you switch back to the class1datatypes to fix, and push. The pull request will update automatically. Go back to the PR on github, once all the comments are addressed, merge and delete the branch.
01week/javascripting/datatypes.js
Outdated
|
|
||
| //Current Date & Time | ||
| function returnDate() { | ||
| let now = new Date(); |
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.
let is redundant. can be simplified to be one line return new Date();
01week/javascripting/datatypes.js
Outdated
|
|
||
| //Convert # to String | ||
| function numToString(x) { | ||
| return x.toString(); |
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.
Can be simplified to be one line
01week/javascripting/datatypes.js
Outdated
| //Convert a String to # | ||
| function stringToNum(x) { | ||
| let a = parseInt(x); | ||
| console.log(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.
Can be simplified to be one line
01week/javascripting/datatypes.js
Outdated
|
|
||
| //One of two things are true | ||
| function theTruth() { | ||
| if (9 > 8 && 9 > 10) { |
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.
Refactor to evaluate if two arguments are true (like in class)
01week/javascripting/datatypes.js
Outdated
| //Both not true | ||
| function theTruth() { | ||
| if (9 === 8 && 8 === 7) { | ||
| console.log("Numbers never lie!"); |
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.
Refactor to evaluate if two arguments are not true (like in class)
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