By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,389 Members | 2,065 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,389 IT Pros & Developers. It's quick & easy.

Question about question mark in JavaScript

P: n/a
Hi

What does a questionmark before a variable do?

For instance,

var test1 = ''

var test2 = '?test1'

What does it do?
Jan 20 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Jimolo meinte:
Hi

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".

Gregor
--
http://photo.gregorkofler.at ::: Landschafts- und Reisefotografie
http://web.gregorkofler.com ::: meine JS-Spielwiese
http://www.image2d.com ::: Bildagentur für den alpinen Raum
Jan 20 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.