Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q1474 Can you do string concatenationin JavaScript like you can in other scripting languages?

You are here: irt.org | FAQ | JavaScript | Text | Q1474 [ previous next ]

Yes:

<script language="JavaScript"><!--
var A = 'This is a test';
var B = ' of string concatenation';
var C = A+B;
alert(C);
A += B;
alert(A);
alert(A + B);
//--></script.

©2018 Martin Webb