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

What is a scope in javascript?

673


What is scope variable in javascript?

741


What is the use of a map object in javascript?

665


How can you detect the client operating system using javascript?

794


What is hoisting in javascript?

671


What is the scope of a function?

687


Is javascript object a hash table?

710


What are the datatypes in javascript?

659


What javascript method would convert the string “20” to an integer (on the fly) so “20” + 20 = 40?

730


What is callback in javascript?

734


Is dart better than javascript?

659


What are the ways to emit client-side javascript from server-side code in asp. Net?

716


How do you add an element at the end of an array?

758


Describe javascript and vbscript.

756


How to make elements invisible?

900