How to combine String values? :/ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to combine String values? :/

I d like to crate 2 strings for example: 1st string is caled txt1 and holds text "good". 2nd string is called txt2 and holds text "morning". I d like to create code, that writes "goodmorning" - Both strings together. Thanks for replies in advance Best regards R

2nd May 2017, 11:17 AM
Radek Horáček
Radek Horáček - avatar
8 Answers
+ 3
have you tried txt1 + txt2¿
2nd May 2017, 11:22 AM
jay
jay - avatar
+ 3
see above for fixes
2nd May 2017, 11:27 AM
jay
jay - avatar
+ 2
also not surrounding strings in quotes. but yeah you were sooo close! have fun!
2nd May 2017, 11:30 AM
jay
jay - avatar
+ 1
yes i did, i got an error
2nd May 2017, 11:22 AM
Radek Horáček
Radek Horáček - avatar
+ 1
2nd May 2017, 11:24 AM
Radek Horáček
Radek Horáček - avatar
+ 1
Thanks a lot, so the error was coused by wrong string command, i guess. Thank you very much for replying. I wish you a great day! :)
2nd May 2017, 11:29 AM
Radek Horáček
Radek Horáček - avatar
+ 1
ohh, thanks a lot :) :). +karma for you ;)
2nd May 2017, 11:31 AM
Radek Horáček
Radek Horáček - avatar