faqts : Computers : Programming : Languages : JavaScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

21 of 30 people (70%) answered Yes
Recently 9 of 10 people (90%) answered Yes

Entry

Any problems in using str = "kjuiu"+ (new line)"hgyhj"+... (new line)"jg"; over str="kjuiu"; str+="hgyhj"; ... str+="jg"; in string concactination

Apr 4th, 2008 20:32
ha mo, Iván Rivera, Guest,


In theory, not at all. I prefer, however, to use the += version, since
it allows for more flexibility in the concatenation process (it's
possible to do some processing in between). It all boils down to a
matter of coding style.
Iván
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com