This PR fixes a bug in the app.js file that was causing the bookmark list to reverse order when a key was pressed. The issue was due to the render() method being called on every key press, causing the list to be re-rendered and reversed. This PR removes the unnecessary reversal of the bookmarks list, ensuring that the bookmarks maintain their original order when being rendered.
Changes Made
Removed the reverse() method call in the render() method of the App class in app.js
Updated the code to maintain the original order of the bookmarks when rendering the list
Testing
Manually tested the application by adding bookmarks and typing keys to ensure that the bookmark list remains in the same order
Description
This PR fixes a bug in the
app.js
file that was causing the bookmark list to reverse order when a key was pressed. The issue was due to therender()
method being called on every key press, causing the list to be re-rendered and reversed. This PR removes the unnecessary reversal of the bookmarks list, ensuring that the bookmarks maintain their original order when being rendered.Changes Made
reverse()
method call in therender()
method of theApp
class inapp.js
Testing
Related Issue
Link to the related issue
Fixes #6.
To checkout this PR branch, run the following command in your terminal: