i get what your trying to do, so you have an array of numbers and array of symbols and when clicked it matches the the array number to the id then pushes it to results? well the problem you had with the symbols is that the array you have does not match the id’s in the html.
A better way of doing this would be to iterate through all the buttons and when a button is clicked send the value to the results array…
$('.bt').each((i, el) => {
$(el).on('click', () => {
result.push(el.value)
$("#input").html(result);
})
})
this should solve your problem just remove bt class from ce button, hope this helps 