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 difference between arrow function and normal function?
Which built-in method returns the calling string value converted to lower case?
How Does Function Hoisting Work in JavaScript?
How do you check if an object is an array or not?
Basic methods for opening a popup window using javascript?
Explain the for-in loop?
Where is javascript used most?
Describe negative infinity in javascript?
What would be the result of 2+5+”3″?
What is let keyword in typescript?
What is output of undefined * 2 in javascript?
How do you change the style/class on any element using javascript?
What does the following statement declares?
What are .js files?
List some unit testing frameworks javascript