Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / upendar

<script type="text/javascript">
var concatString= "";
function concatArgs() {
var argsLength = arguments.length;
for(var i=0; i<argsLength; i++) {
concatString = concatString + arguments[i];
}
}
document.write(concatString);
</script>

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is jquery easier than javascript?

942


What is trim whitespace google sheets?

988


What is createtextnode?

960


How do I turn on javascript on my phone?

950


What is a module in javascript?

1095


Where do you put javascript in html?

1093


How do I run javascript in chrome?

1052


Why do we need javascript?

1000


Have you used any browser for debugging? If yes, how is it done?

936


Explain how to read and write a file using javascript?

1026


What is a global variable in programming?

1010


What is the function of delete operator?

1020


In javascript what is an argument object?

1641


What is javascript used for on iphone?

956


Write a program to exaplain the deferred scripts using event handlers in javascript.

939