-
Notifications
You must be signed in to change notification settings - Fork 0
Week6mastermind #10
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?
Week6mastermind #10
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, over all nice job. I really like your white boarding. However, upon testing, I was unable to check the guess or display a hint. You're almost there, you just need to fix a few es6 things and possibly some functionality bugs.
| boardColorsCanvas.setAttribute('class', 'palette'); | ||
| // boardColorsCanvas.setAttribute('class', 'boardColors') | ||
| // const boardColorsCanvas = document.getElementById('boardColors') | ||
| for(let i = 0; i < boardColors.length; i++){ |
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.
You should use a map or for each here.
| document.addEventListener('DOMContentLoaded', () => { | ||
|
|
||
| let boardColors = ['red', 'blue', 'green', 'white', 'yellow', 'purple', 'orange', 'black']; | ||
| let generatedAnswer = []; |
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 should be a const
| populateChoice(color); | ||
| }); | ||
| boardColorsCanvas.appendChild(chooseSection); | ||
| let theBody = document.getElementsByTagName('body')[0]; |
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 should be a const
| // boardColorsCanvas.setAttribute('class', 'boardColors') | ||
| // const boardColorsCanvas = document.getElementById('boardColors') | ||
| for(let i = 0; i < boardColors.length; i++){ | ||
| let chooseSection = document.createElement('div'); |
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 should be a const
| <body> | ||
| <script type="text/javascript" src="./script.js"></script> | ||
|
|
||
| <div> |
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.
nice clean html!!!
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