Skip to content

initial commit, datatypes project - #1

Open
erlanggaramzy wants to merge 1 commit into
gh-pagesfrom
class1-data
Open

initial commit, datatypes project#1
erlanggaramzy wants to merge 1 commit into
gh-pagesfrom
class1-data

Conversation

@erlanggaramzy

Copy link
Copy Markdown
Owner

Checkpoint Rubric

This is the rubric that your instructor will use to grade your checkpoints. Please do not edit.

Checkpoint 1

  • All tests passed: 40 points
  • Proper use of documentation (commenting on code): 15 points
  • Properly indented code: 15 points
  • Demonstrated effective use of JavaScript: 30 points

Checkpoint 2

  • The application works as it should: 40 points
  • Proper use of documentation (commenting on code): 15 points
  • Properly indented code: 15 points
  • Demonstrated effective use of JavaScript and the DOM API: 30 points

Checkpoint 3

  • Use of React: 25 points
  • Accesses an API: 25 points
  • Proper use of documentation (commenting on code): 25 points
  • The application functions as it should: 25 points

@reneemeyer reneemeyer left a comment

Copy link
Copy Markdown

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.

Comment thread 01week/datatypes.js
const day = date.getDay();
const hour = date.getHours();
const minute = date.getMinutes();
console.log("today is " + [day] + " " + [hour] + ":" + [minute]);

Copy link
Copy Markdown

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

Comment thread 01week/datatypes.js


const number = (x) => {
console.log(toString(x));

Copy link
Copy Markdown

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

Comment thread 01week/datatypes.js


const string = (number) => {
console.log(Number(number));

Copy link
Copy Markdown

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

Comment thread 01week/datatypes.js


const type = (datatype) => {
console.log(typeof datatype);

Copy link
Copy Markdown

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

Comment thread 01week/datatypes.js


const add = (x, y) => {
console.log (x + y);

Copy link
Copy Markdown

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

Comment thread 01week/datatypes.js
const c = 12;

function twoTrue() {
if (b>a && c>b) {

Copy link
Copy Markdown

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.

Comment thread 01week/datatypes.js
twoTrue();

const oneTrue = (x,y) => {
if (x>y || x==y) {

Copy link
Copy Markdown

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.

Comment thread 01week/datatypes.js
oneTrue(3,1);

const noneTrue = (x,y) => {
if (!x>y && !x==y) {

Copy link
Copy Markdown

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

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