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


Please Help Members By Posting Answers For Below Questions

What is trim whitespace google sheets?

683


What is scope variable in javascript?

745


How to submit a form using JavaScript by clicking a link?

783


How to define a named function in JavScript?

752


How to associate functions with objects using javascript?

702


What is an anonymous function in JavaScript?

734


Is javascript case sensitive language?

780


Explain mul function in javascript?

726


What are exports & imports?

687


What is the reason for wrapping the entire content of a javascript source file in a function book?

799


What can I build with javascript?

708


How to delete a cookie using javascript?

733


What are the types of variables in javascript?

685


What are .js files?

697


What happens when the recursion calling is applied on two functions?

743