-2
var Var1= 'this sentence'
var Var2 ='new sentence'

The output i want is :

this sentencenew sentence

And i had to add this sentence to be able to submit my question.

Edit: I know these methods shared in the answers i just notice that my question was too simple i'll adjust to my issue:

var link = 'https://thisIsAlink'
var line = 'this is a line'

what i have done is

var full_path = session.send(link + line)

The output i got :https://thisIsAlink this is a line The output i want :https://thisIsAlinkthis is a line

user9068379
  • 11
  • 1
  • 4
  • Having reread the question I realise that I got your desired and actual output backwards. There is no way that the code you provided will give the result you describe. The space can't appear from nowhere. – Quentin Dec 08 '17 at 10:42
  • http://jsbin.com/sigocezesu/1/edit?js,console – Quentin Dec 08 '17 at 10:44

1 Answers1

1
Var1 = 'this sentence'
Var2 = 'new sentence'
Var2 += Var1

This output is : new sentencethis sentence If you want just switch the contat and you get the opposite

Lucio Zenir
  • 315
  • 8
  • 18
  • Have you tried this? var link = 'https://thisIsAlink' var line = 'this is a line' var link += line var full_path = session.send(link) – Lucio Zenir Dec 08 '17 at 10:33