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.

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

How you can modify XAML content from JavaScript in Silverlight?

920


What are the data types in js?

909


Why javascript is so popular?

835


Can you explain how inheritance works in javascript?

883


What companies use javascript?

809


What do you use javascript for?

811


What does the delete operator do?

891


What is this? Var myarray = [[[]]];

985


How about 3+5+"8"?

940


What is difference between javascript and jscript?

846


What is number in javascript?

812


What typeof returns for a null value?

979


What is the importance of javascript?

876


What are 2 (shorthand) boolean operators supported by javascript

908


Is webassembly faster than javascript?

891