Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • The function is called when the "delete list" button is clicked, so it doesn't make sense to name it closeCurrentPage, as its main purpose is to delete the list. Commented May 23, 2022 at 7:11
  • @Goodguy But does the "delete list" button essentially close the page? The name of the function does not necessarily have to match what the user sees on a button. Commented May 25, 2022 at 16:07
  • @JMekker But the function's main purpose is to delete the list, not to close the page. You could omit the action of closing the page, and the function would still fulfill its purpose. Commented May 27, 2022 at 5:33