You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Great looking style, but the rejection challenge is more than a counter, and you're not quite finished, yet.
The idea is to keep a log of questions. From the README:
Include a text input for the ask, who you asked, and two buttons: "Accepted" or "Rejected".
Use HTML+CSS and store a record of the data in localStorage.
There's even a sample of the data structure for you to use -- as you can see, it's not a counter that you simply add to when the buttons are clicked:
{timestamp: Number,// output from Date.now()ask: String,// the askaskee: String,// person askedstatus: String// 'Accepted' or 'Rejected'}
You don't need to record the score -- you should reduce over this array to calculate it, instead. That way, the record of ask objects are the single source of truth for the score.
Code
Reject Counter
The text was updated successfully, but these errors were encountered: