What does a questionmark before a variable do?
var test1 = ''
var test2 = '?test1'
What does it do?
Richard Hijdra wrote:
> Jimolo wrote:
>> What does a questionmark before a variable do?
>> For instance,
>> var test1 = ''
>> var test2 = '?test1'
>> What does it do?
> In what context do you mean this?
> Normally I would say its a query after an URL like;
three meanings in my 'bible'
the one you stated..URL stuff.
Then teh normal C style compact condtional as in
(if b equals c, set a to d, else set a to e)
Or a part of a regexp pattern matching string thing.
> instance 1
> instance 2
> Where in 2nd instance there will be a query carried out on the page
> (this can for instance been used to pass a variable to the page)
> Works like this
> What does a questionmark before a variable do?
> For instance,
> var test1 = ''
> var test2 = '?test1'
> What does it do?
Here? test2 contains the string "?test1". There is no "question mark
before a variable".
http://photo.gregorkofler.at ::: Landschafts- und Reisefotografie
http://web.gregorkofler.com ::: meine JS-Spielwiese
http://www.image2d.com ::: Bildagentur für den alpinen Raum
|All times are GMT. The time now is 05:04 AM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.