Using getURL to call JS function

Hello!
If i’m using the getURL method to call a JavaScript function:

getURL(“javascript:myFunction(‘sections/1.html’)”);
How do I pass a string+variable as a parameter of that function?:

instead of:
‘sections/1.html’

i’d like to pass something like:
“sections/”+i+".html"

where i is a variable.
What is the correct syntax for that parameter we’re passing?

Thank you! :good: