program showing string concatenation?

Answer Posted / prasadkonnur

HI Rajeshwar,

you are right. $variable work in php. not in javascript.

var a="hello";
var b="world";

var concat= a+b;
document.writeln(concat);

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does triple dot mean?

751


How to remove duplicates from javascript array?

741


How to loop through array in javascript?

685


Is javascript enabled on my computer?

678


How can a value be appended to an array?

675


How do you reverse a string in javascript?

650


How to add new elements dynamically?

753


what is the difference between let, var, and const?

805


What is scope chain in javascript?

701


What is the use of window object?

761


Some XYZ company is arranging for online aptitude tests. Draw detailed E-R diagram for the same..

1874


name any two javascript functions which are used to convert nonnumeric values into numbers?

689


Is javascript open source?

632


Why javascript is fast?

672


Explain function hoisting in javascript?

688