I'm in favour of deletion of this particular question: all of the answers on that question are not so high in quality ("try this" kind without any explanation), provide known bad guidance (setHours
does not work properly with daylight saving time and requires reading its documentation to know the behavior around 23+1
), as well as modifying prototypes on built-in types (and exactly the same discussions from the comments is available on the duplicate).
Since deleting answers with high score is not possible for users and moderators will not remove answers that are within the rules, it is very hard to find a better solution than removing the question, especially when there is not much lost: a good and easy way to find the duplicate exists and reputation collected on old posts is not removed when that post is deleted.
Side note: it is unclear what the reasoning/motivation of voters was to delete, as none of them has high score in JavaScript. So while I think there is a good reason for the post to stay deleted, there may be something else related to the post that triggered deletion.