If we want to combine
two ore more strings, we use + operator:
|
|
msg1="House"
msg2="Of Scripts!"
msg3=msg1+mdg2
Now msg3 = HouseOf
Scripts! (Note: There is no space between
House and Of...)
|
|
|
|
|
There are two ways to
insert space into the expression:
|
|
msg1="House "
msg2="Of Scripts!"
msg3=msg1+mdg2
Now msg3 = House
Of Scripts! (Note: I insert space after House
in msg1)
|
|
OR
|
|
msg1="House"
msg2="Of Scripts!"
msg3=msg1 + " " + mdg2
Now msg3 = House
Of Scripts! (Note: I think it is clear)
|
|