Skip to content

Conversation

@aguevara1
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

@wc0sby wc0sby left a comment

Choose a reason for hiding this comment

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

Nice work. Try to refactor a bit and rethink the assignment scope of 'doesItContainVowel'


//global variables
const theVowels = ['a', 'e', 'i', 'o', 'u'];
let doesItContainVowel=false;
Copy link

Choose a reason for hiding this comment

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

Keeping this in the global scope is dangerous as it can be overwritten. Think of another way to write your code so that this accessible only when needed.

// to not be outside of this range, if not in range return false
const isValid = (word) => {
for(const letter of word){
if(letter <'a' || letter >'z'){
Copy link

Choose a reason for hiding this comment

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

Refactor this and test the true first. If you return true first, the false is implicit. Also, you could shorten even further. Really neat trick here, btw

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