-2
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

OneCricketeer
  • 179,855
  • 19
  • 132
  • 245
user9068379
  • 11
  • 1
  • 4
  • 1
    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

OneCricketeer
  • 179,855
  • 19
  • 132
  • 245
Lucio Zenir
  • 365
  • 2
  • 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