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
How many functions are there in javascript?
What is use strict in javascript?
what does javascript null mean?
What do mean by NULL in Javascript?
Can webassembly replace javascript?
What applications use javascript?
How to make a function in javascript?
Name the datatypes of javascript?
What is variable typing?
How to getting values from cookies to set widgets?
What is difference between var x =1; and x=1;?
What are the types used in javascript?
Are java and javascript the same?
What is an undefined value in JavaScript?
Is javascript a security risk?