function onChangeSelect() {
    const commentsLimit = document.getElementById("number-of-comments").value;
    window.localStorage.setItem('commentsLimit', commentsLimit);
    getComments();
}
/**
 * Adds the selected commentsLimit to the localStorage
 * and then reloads the page.
 */
Adds the selected commentsLimit to the localStorage
and then reloads the page.
Adds the selected commentsLimit to the localStorage and then reloads the page .
function onChangeSelect() {
    const commentsLimit = document.getElementById("number-of-comments").value;
    window.localStorage.setItem('commentsLimit', commentsLimit);
    getComments();
}
function onChangeSelect ( ) { const commentsLimit = document . getElementById ( "number-of-comments" ) . value ; window . localStorage . setItem ( 'commentsLimit' , commentsLimit ) ; getComments ( ) ; }
Adds the selected commentsLimit to the localStorage
 and then reloads the page.
Adds the selected commentsLimit to the localStorage and then reloads the page .