"+ section" just adds the value of the variable "section" to the end of the URL.
So, for example, if you had this somewhere prior to the function:
Code:
var section = "/somesite.html"
Then, the variable "section" would evaluate to the text "/somesite.html". Then, when you call the openURL function with:
Code:
widget.openURL('http://www.quinnyblog.com' + section)
...you would actually be opening the URL "http://www.quinnyblog.com/somesite.html"
The + operator simply concatenates the two strings together. You have one string, explicitly defined as "http://www.quinnyblog.com" and another string, defined in the variable "section." When you "plus" or "add" them together as in the code examples, you're simply concatenating the two together to make one, long string... the same as simply calling:
Code:
openURL('http://www.quinnyblog.com/somesite.html')
You could also store the WHOLE string as a variable, or as multiple variables. You could do this:
Code:
var first = 'http://'
var second = 'www.yo-i-am-the-coolest-ever.com'
var third = '/you-better-believe-it.html'
openURL(first + second + third)
...and the openURL function would basically be this:
Code:
openURL('http://www.yo-i-am-the-coolest-ever.com/you-better-believe-it.html')
Make sense?