This calls me to concatenate two strings that are not yet declared they are still in parameter
I have tried to give the parameter values in string form and have console log the strings to become arguments in console.log(string + string2)
function concatenateTwoStrings(string1, string2) {
var string1 = "dance"
var string2 = "party"
}
console.log(string1 + string2)
expected result is danceparty actual result is syntax error.
console.log(string1+string2)inside the function as well?