Skip to content

Conversation

@jmwhitman7
Copy link
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

Copy link

@reneemeyer reneemeyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jonathan, nice job, just a few minor changes and you'll be good to go. I would definitely suggest reviewing the difference between the boolean true and something evaluating to true. Go ahead, make your changes on the class1datatypes branch, push your changes to update the pull request. Then come back to the pull request on git hub, once the comments are addressed, press "merge" at the bottom.

// Write a JavaScript program to display the current day and time.

function currentDateTime(){
console.log(new Date());

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The logic is right, however the function call is a little off. Your function should return the new date, and you should call the function in a console.log to display.
function currentDateTime(){ return new Date(); } console.log(currentDateTime());

// Write a JavaScript program to convert a number to a string.

function numberToString(num){
console.log(num.toString());

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The logic is right, however the function call is a little off. Your function should return the new date, and you should call the function in a console.log to display.

// Write a JavaScript program to convert a string to the number.

function stringToNumber(number){
console.log(parseInt(number));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The logic is right, however the function call is a little off. Your function should return the new date, and you should call the function in a console.log to display.

// String

function ReturnType(someData){
console.log(typeof someData);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The logic is right, however the function call is a little off. Your function should return the new date, and you should call the function in a console.log to display.

// Write a JavaScript program that adds 2 numbers together.

function addingStuff(dig1, dig2){
console.log( dig1 + dig2 );

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The logic is right, however the function call is a little off. Your function should return the new date, and you should call the function in a console.log to display.

function trueTings (x, y){
if(x === true && y === true) {
console.log("It's True!");
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The logic is right, however the function call is a little off. Your function should return the new date, and you should call the function in a console.log to display.


// Write a JavaScript program that runs only when 2 things are true.
function trueTings (x, y){
if(x === true && y === true) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function as is evaluates if x & y are equal to the boolean "true". So to get it to run you would have to pass in the literal boolean "true". I need the function to evaluate if x & y evaluate to true. if(x&y){...}

function oneTingTrue (z, p) {
if (p || z === true) {
console.log("There can only be one");
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The logic is right, however the function call is a little off. Your function should return the new date, and you should call the function in a console.log to display.

// Write a JavaScript program that runs when 1 of 2 things are true.

function oneTingTrue (z, p) {
if (p || z === true) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function as is evaluates if x is equal to the boolean "true". So to get it to run you would have to pass in the literal boolean "true". I need the function to evaluate if x or p evaluates to true.


function noTrueTings (w, r) {
if (w != 2 && r != 13){
console.log("Yeah right! Neither are true");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The logic is right, however the function call is a little off. Your function should return the new date, and you should call the function in a console.log to display.

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.

3 participants