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 to import all exports of a file as an object.
Explain javascript debounce function?
What is enum data type?
What is null in js?
What is a reverse string?
what is function of stdio.h
Explain function hoisting in javascript?
How to use external JavaScript file?
just for testing
What are escape characters?
What is difference between scripting and programming?
Is javascript free to install?
What is a function object?
why we need java instead of c
How do I run code in browser console?