How to pass a value to next step in Inject Java Script Step

Hi All,

I am trying to pass a value to next step in Inject Java Script Step but i am not able to do the same. I am using the below code :-

var FieldName = “FieldName”;
var FieldValue = “FieldValue”;
var FieldName2 = “FieldName2”;
var FieldValue2 = “FieldValue2”;
return
“<<>>”+FieldName+"::"+FieldValue+"<<>>;<<>>"+FieldName2+":
:"+FieldValue2+"<<>>";

I got the above code from Automation Edge Reference guide but this is not working.
Please help me with the solution. Your prompt help with be highly appreciated.

Regards,
Mohd Jishan