I could find some similar quesitons but I don't think the similar questions answers my question.
I made variables
line1 =[]
line2= []
line3 = []
line4 =[]
and I made a function drawline()
I would like to do looping like
for (let i = 1; i<5; i++){
drawline(`line${i}`)
}
However, there was an error message saying 'line' wasn't defined. I think I understood template literal, but it tells me that I don't understand it fully.
Can anyone help me?