Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Write a JavaScript function which can take any number of
strings as arguments and outputs them as a single
concatenated string.

Answers were Sorted based on User's Feedback



Write a JavaScript function which can take any number of strings as arguments and outputs them as a..

Answer / ashok

<script type="text/javascript">
var a="i am ashok choudhary!";
var b="i belongs to jaipir.";
document.write(a+b);
</script>

Is This Answer Correct ?    0 Yes 0 No

Write a JavaScript function which can take any number of strings as arguments and outputs them as a..

Answer / szilveszter safar

function concatStrings () {
return Array.prototype.join.call(arguments, '');
}

Is This Answer Correct ?    0 Yes 0 No

Write a JavaScript function which can take any number of strings as arguments and outputs them as a..

Answer / 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

Write a JavaScript function which can take any number of strings as arguments and outputs them as a..

Answer / 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

More JavaScript Interview Questions

How to replace all occurrences of a string in JavaScript?

0 Answers  


What are the scopes of a variable in javascript?

0 Answers  


What is use of object as function?

0 Answers  


Iam getting xml when we click on one button.Iam placing that xml in dom.Im getting that xml data in one xsl.In that xsl I want to increase the variable value which is declared in xsl. Ex: <parent_node> <childNode> <first><d1>ffftt</d1></first> <first><d1>eeeeiii</d1></first> <first><d1>uuuuwww</d1></first> </childNode> <childNode> <first><d1>fff</d1></first> <first><d1>eeee</d1></first> <first><d1>uuuu</d1></first> </childNode> </parent_node>

0 Answers  


How to disable an html object ?

0 Answers  


What does two exclamation marks mean in javascript?

0 Answers  


What is unobtrusive javascript?

0 Answers  


How do I open javascript in browser?

0 Answers  


Hai what is the difference between java and javascript

2 Answers  


How to reload the current page?

0 Answers  


Is javascript becoming obsolete?

0 Answers  


How do I open javascript on my iphone?

0 Answers  


Categories