Giter Site home page Giter Site logo

lrebornsl / awesome-books Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 184 KB

A web page that brings you a list of books that you also can add or remove in their respective section. Build it with: HTML, CSS and JS.

Home Page: https://lrebornsl.github.io/awesome-books/

License: Other

HTML 0.99% CSS 0.91% JavaScript 98.10%

awesome-books's Issues

Module 2 - Week 2 - Day 2: Peer to Peer Code Review :speech_balloon: :ok_hand:

Hello @lRebornsl ๐Ÿ‘‹ ๐Ÿ‘‹

Great job my friend on the project so far! Your hard work and progress are clearly visible, particularly in the impressive use of JavaScript classes and local storage to manage the bookshelf data. This demonstrates a solid foundation to build upon. ๐Ÿ‘ ๐Ÿ’ฏ

However, in order to meet all the project requirements, there are a few issues that need to be addressed. I have no doubt that you're more than capable of resolving them. ๐Ÿ’ช

clap-1-slow-sarcastic-applause-usagif

To highlight ๐ŸŒŸ ๐ŸŽฏ

  • Nice use of JS modules for splitting the code. ๐Ÿฅ‡
  • Good use of luxon to display the current time. โŒš
  • well-structured LocalStorage for managing stored books โœ”๏ธ
  • Use GitHub Workflows. :octocat: .

Needed modifications โ™ป๏ธ

At book-collection.js ๐Ÿ‘€

  • It would be better if you use forEach instead of classic for to iterate over this.books. (Line 27)

Using forEach is often preferred over a normal for loop because it simplifies the syntax and can make the code more readable by eliminating the need for an index counter and explicit indexing.

your code ๐Ÿ’Ÿ

for (let i = 0; i < this.books.length; i += 1) {
 // iterate over this.books and display books
}

suggested code

this.books.forEach((book) => {
  // iterate over this.books and display books
});

At index.js ๐Ÿ‘€

  • You might want to consider making your index.js file the main entry point for your application. To do this, you could move the menus.EventListener and doDate functions to a new file in the modules directory and then import it in the index.js file. This will help make your index.js file more clear and more organized.

The index.js file is commonly used as the main module that imports and initializes other modules, libraries, and components. It can also define global configurations and set up the application environment.

Cheers, and Happy coding! ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘. Keep up the great work! ๐Ÿ’ช ๐Ÿ‘จโ€๐Ÿ’ป

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.