Write a JavaScript function which can take any number of
strings as arguments and outputs them as a single
concatenated string.

Answer Posted / szilveszter safar

function concatStrings () {
return Array.prototype.join.call(arguments, '');
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How you will add function as a property in a javascript object? Give an example.

755


What is event target in javascript?

660


Explain the difference between call() and apply()?

672


What is "this"?

678


What is a Typed Language?

771


How to you change the title of the page by javascript?

702


What is noscript tag?

705


What does dynamic component in javascript contain?

753


Is javascript necessary?

632


What is difference between ajax and javascript?

636


How do you organize your JavaScript code?

802


What is difference between callback and promise?

660


Who is the world famous hacker?

662


How to access the value of a textbox using javascript?

689


How to loop through array in javascript?

660