Closed leotran20 closed 1 year ago
Just updated the project following the requirement about not using jQuery. So, jQuery has been removed out of my submission.
Hello @leotran20 , well done!
Final result: ✅ passed
We also have some comments for your work:
<table>
<thead>
<tr>
<th colspan="2">The table header</th>
</tr>
</thead>
<tbody>
<tr>
<td>The table body</td>
<td>with two columns</td>
</tr>
</tbody>
</table>
However, your table structure appears as follows:
<table class="main-content">
<tbody>
<tr>
<th colspan="2">Name</th>
<th>Author</th>
<th>Topic</th>
<th>Action</th>
</tr>
<tr>
<td colspan="2">Javascript</td>
<td>Unknown</td>
<td>Programming</td>
<td>
<button
class="btn btn-link"
type="button"
onclick="openConfirmationDialog({name: 'Javascript', id: '1'})"
>
<span>Delete</span>
</button>
</td>
</tr>
</tbody>
</table>
Your code appears somewhat unformatted. You can improve its formatting either manually or by utilizing your IDE's formatting tools.
Dynamically fetching HTML is a good idea, but it might be considered a bit excessive for this assignment. Nonetheless, it's still a valuable concept.
The code segments localStorage.setItem
and localStorage.getItem
are repeated multiple times throughout your code. It would be helpful to create utility functions for these operations. Additionally, consider wrapping the JSON.parse
function in a try-catch
block to gracefully handle unexpected errors.
We encourage you to add comments to your issue to describe what you have done in your assignment. This will make it easier for us to review your work and understand your changes.
Keep up the good work!
Hi, here is the link of my submission for assignment 1: https://df-frontend-2023-rho.vercel.app/