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

List few advantages of using javascript?

859


What is the use of decodeuri() and encodeuri()?

982


What is a closure and why are they so useful to us?

981


How to manage exception handling in javascript?

990


How to get value of an element by class in javascript ?

962


What is use of JavaScript and jquery?

1095


What are the three core languages in web pages?

1051


What is stack queue?

919


How can you detect the client operating system using javascript?

1241


How do I save javascript?

959


Name the different types of pop up boxes in Javascript?

989


Explain promise in javascript?

864


How are javascript and ecma script related?

942


Explain window.onload and ondocumentready?

917


What are the ways to emit client-side javascript from server-side code in asp. Net?

1000