Write a JavaScript function which can take any number of
strings as arguments and outputs them as a single
concatenated string.
Answer Posted / madhav arora
Lets Declare two variables :"a" and "b" to solve this
problem :
var a = 'Hello world!';
var b = 'I am a JavaScript hacker.'
First of all, you can concatenate strings, sew them
together as it were:
document.write(a + b);
gives
Hello world!I am a JavaScript hacker
Is This Answer Correct ? | 4 Yes | 5 No |
Post New Answer View All Answers
What is trim whitespace google sheets?
What is scope variable in javascript?
How to submit a form using JavaScript by clicking a link?
How to define a named function in JavScript?
How to associate functions with objects using javascript?
What is an anonymous function in JavaScript?
Is javascript case sensitive language?
Explain mul function in javascript?
What are exports & imports?
What is the reason for wrapping the entire content of a javascript source file in a function book?
What can I build with javascript?
How to delete a cookie using javascript?
What are the types of variables in javascript?
What are .js files?
What happens when the recursion calling is applied on two functions?