I would like to know if organizing JS functions in object notation is a good or bad practice. The intention is to keep js organized/easy to maintain.
Example:
var helper = {
    myAlert: function(){
    return alert('Alert from helper');
},
    toLowerCase: function(){
    var str = document.getElementById("txt").innerHTML;
    return alert(str.toLowerCase());
}
}
Html:
<body>
    <h1 onclick="helper.myAlert()">Hello Plunker!</h1>
    <p id="txt" onclick="helper.toLowerCase()">Testing LowerCaseFunction</p>
</body>
Thanks in advance!!!
 
     
     
    