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 please help me figure this one out?
function NewMenuItem(){
var output = "<input type='checkbox'> ";
var output .= "<input type='text'> ";
return output;
}
+operator:"some string" + "some other string", Expressions and Operators.is the PHP concat operator. JS uses+.output += "some more stuff"