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

What is JavaScript?

1892


Explain javascript event delegation model?

971


What are the distinct types of error name values?

968


Consider the following code: 1 2 3 4 5 (function() { var a = b = 5; })(); console.log(b); what will be printed on the console?

842


Does spacing matter in javascript?

958


What is scope javascript?

972


What output will this program produce System.out.println(x+"+"+y+"="+(x+));

2022


How do you change the style/class on any element using javascript?

916


Where are cookies actually stored on the hard disk?

935


why we calld java object orinted programming language??

1902


What is difference between arrow function and normal function?

884


Where do you write javascript?

899


How does typeof operator work?

1035


How do I install javascript?

920


What is console.time() and console.timeend()? What is its syntax, and why is it used?

985