Skip to content

Async await#2

Open
Krishan-Mishra wants to merge 2 commits into
javascriptfrom
async-await
Open

Async await#2
Krishan-Mishra wants to merge 2 commits into
javascriptfrom
async-await

Conversation

@Krishan-Mishra

Copy link
Copy Markdown
Owner

Implemented the Display books in table using async-await method

Comment thread display_books_aysnc-await.js Outdated
document.getElementById("btn-search-genre").onclick = genreButton;
document.getElementById("btn-search-price").onclick = priceButton;

function IdButton(event) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

function name should be in the camelCase in js (by convention)

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolved

Comment thread display_books_aysnc-await.js Outdated
insertDataInHtml(matchingBooks);
}

function genreButton(event) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use es6 syntax as much as possible at every instance

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noted and applied wherever possible

Comment thread display_books_aysnc-await.js Outdated
`;
tableBody.appendChild(row);
data.forEach((book) => {
let row = document.createElement("tr");

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please change the name of this variable "row" to something else

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants