I am trying to concatenate variables in inside a function and then return. In php we just put a period before the \"=\" but it is not working in javascript.
Can someone
"+=" is the standard way to concatenate in javascript;
var a = "yourname"; var b = "yourlastname"; var name = a + b; var complete_name = "my name is: "; complete_name += name;
result : my name is: yourname yourlastname