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
What is the difference between ‘function declaration’ and ‘function expression’?
How to access an external javascript file that is stored externally and not embedded?
What is a module code?
What are the data types supported by javascript?
What is viewstate in javascript?
What is the use of type of operator?
Are there any training Institutions on iphone Automation testing?
What is the difference between childNode and children?
Explain why asynchronous code is important in javascript?
What is the purpose of local variables?
How do functions work in javascript?
What is the best site to learn javascript?
How to write a comment in javascript?
What is meaning of === in javascript?
What are events in javascript?