I want to reduce the code.
function one() { console.log(\"hai\"); } document.getElementById(\'dealsButton_1\').onclick = one; document.getElementById(\'dealsBu
Here is a solution where you can choose ID name as u wish without a specific pattern of name.
one two