- Joined
- Dec 10, 2022
- Messages
- 17
- 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:
and/or
this head of a script found at
Thank you in advance
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
W3Schools online HTML editor
The W3Schools online code editor allows you to edit code and view the result in your browser
www.w3schools.com
Thank you in advance