index.html
- formatting looks great!
- remove unnecessary html:
<!-- <p class="toParagraph">To Leanne</p>
<p class="endorsementParagraph">Leanne! Thank you so much for helping me with
the March accounting. Saved so much time because of you! 💜 Frode</p>
<div class="fromLikesContainer">
<p class="fromParagraph">From Frode</p>
<a href="#">
<p class="LikesParagraph">❤️ 4</p> -->
<!-- </a> -->
<!-- </div> -->
- use destructuring:
const {to, endorsement, from, id, liked, likes, comment} = endorsements
from is an identifier in javascript:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#keywords
A few identifiers have a special meaning in some contexts without being reserved words of any kind.
- duplicate files in asset folder
Stretch goals:
- disable publish so it can't be used until all input fields are used
- enable publish button after all input fields are filled