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
Does javascript support automatic type conversion?
How do I retrieve a cookie with a given name using a regular expression?
What is the difference between arrow function and normal function?
What is a closure javascript?
What are the different types of errors in javascript?
What is use of flutter?
What is the difference between attributes and property?
Is javascript a programming language?
What are math constants and functions using javascript?
Explain the working of timers in javascript?
What is arguments object in JavaScript?
Is jquery easier than javascript?
How to create an object using javascript?
Why is javascript good for websites?
what is a code in vb amount display in words