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
make sure that users can not submit the same value more than once. when a food is added lowercase it and check if its already in the array if it is display a message to your user to add something else and remove the message when they click into the input again.
The text was updated successfully, but these errors were encountered:
for fun look into ternary operator for conditionals that are either true or false : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Conditional_Operator
you can append multiple items to the an other element at once, just separate the values by a comma
foodDiv.append(ratingText);
foodDiv.append(foodImage);
foodDiv.append(ratingText, foodImage);
very nice work!
make sure that users can not submit the same value more than once. when a food is added lowercase it and check if its already in the array if it is display a message to your user to add something else and remove the message when they click into the input again.
The text was updated successfully, but these errors were encountered: