Solo Project Learnings
Solo Project Learnings
Yesterday I submitted my Movie Watchlist solo project for review. Here are things I learned working on the project:
- Add
charsetto the<script>tag in your HTML, in order to ensure the HTML rendered using JS doesn't replace characters like the apostrophe'with some weird characters. - Use
utils.jsto include utility functions. - Use
window.location.href.includes()to check which HTML page you are on. - Add an event listener for
keydownto check ifEnterwas pressed. - Use comments to organize your CSS.
- Use
::beforeto add opacity to your background image. - Use
text-overflow: ellipsisto replace last three characters in an overflowing text with....