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

What is the difference between ‘function declaration’ and ‘function expression’?

1051


How to access an external javascript file that is stored externally and not embedded?

1127


What is a module code?

1027


What are the data types supported by javascript?

974


What is viewstate in javascript?

1022


What is the use of type of operator?

938


Are there any training Institutions on iphone Automation testing?

2292


What is the difference between childNode and children?

1055


Explain why asynchronous code is important in javascript?

1016


What is the purpose of local variables?

951


How do functions work in javascript?

956


What is the best site to learn javascript?

875


How to write a comment in javascript?

1119


What is meaning of === in javascript?

972


What are events in javascript?

934