17.5k views
1 vote
Declare and define a function called displayConcat that displays the concatenation of the first parameter with the second. Ex: displayConcat("After", "noon") displays "Afternoon".

1 Answer

2 votes
function displayConcat(first, second) {
// using console.log print concatenation of first and second strings
console.log(first + second);
}

displayConcat('After', 'noon');
Declare and define a function called displayConcat that displays the concatenation-example-1
User Kshitij Godara
by
5.2k points