TypeError: document.getElementsById is not a function
– why?
And how can I further translate it into an array from ordinary text so that I can work with division, multiplication, etc.
Answer 1, authority 100%
Use
document.getElementById
Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.