Loading…

How to concatenate two strings using jQuery?

In order to concatenate two strings in jQuery concatenate the strings using + consternation operator. You have to follow a sequence of codes soon after it. Once it is done, the strings get concatenate. There are some other alternatives as well.

Example

                                        

var a = 'Best Interview';
var b = 'Question';
var result = a + b;

// output
Best Interview Question

Suggest An Answer

No suggestions avaliable!

Latest post from JQuery interview questions

Ask Question