Skip to content

JavaScript best practices #5

@Mwapsam

Description

@Mwapsam

Below are the issues noticed based on HTML, CSS, and JavaScript best practices

  • Consider wrapping the parent div in a section and replacing the p tag with an h1 tag in the index, this will conform to the HTML semantics rules (every HTML page should have at least one h1 tag)
  • Consider refactoring your code to ES6 classes because their syntax is way cleaner and easier to understand.
  • It would be nice to refactor the loop in crud.js to use ForEach loop instead of the good old for loop
  • Consider pushing all variable declarations to the beginning of the block

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions