Replace Arrays and Const by getElementById() method ?

Joined
Dec 10, 2022
Messages
13
Reaction score
2
Dear all,

Could someone possibly help me figure out how to use the getElementById() method to replace arrays or a variable like Const?

Two examples below:

Code:
let arr = [
          ['Team', 'Number of Championships'],
          ['Real Madrid',    66],
          ['Juventus',     37],
          ['Liverpool', 28],
          ['Bayern Munich', 48],
          ['Barcelona',  34]
              ];



and/or

Code:
const xValues = [50,60,70,80,90,100,110,120,130,140,150];
const yValues = [7,8,8,9,9,9,10,11,14,14,15];

this head of a script found at

Thank you in advance
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,954
Messages
2,570,113
Members
46,699
Latest member
RossReber5

Latest Threads

Top