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 bom?

562


How many hours learn javascript?

615


What are the Non-primitive data types in JavaScript?

545


How many types of javascript are there?

486


Is jquery easier than javascript?

463






How to convert “20” to number in javascript?

509


Can you explain the difference between call and apply?

546


hi i want validations for two drop down lists. when user enter to second list by skipping first list alert box should appear. drop down validation Please choose an item from the drop down menu:

Choose a username:
Choose a username:
please any body help me thanks

1710


what is function of stdio.h

2041


How to import all exports of a file as an object.

508


What is escape & unescape String functions in JavaScript?

541


What is the difference between firstChild and firstElementChild?

581


What is difference between java and javascript?

493


Write the point of difference between web-garden and a web-farm?

495


Are javascript variables case sensitive?

484