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
charset
to 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.js
to include utility functions. - Use
window.location.href.includes()
to check which HTML page you are on. - Add an event listener for
keydown
to check ifEnter
was pressed. - Use comments to organize your CSS.
- Use
::before
to add opacity to your background image. - Use
text-overflow: ellipsis
to replace last three characters in an overflowing text with...
.