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

Why do we need hoisting in javascript?

658


How does typeof operator work?

770


Difference Between JavaScript and ECMAScript?

646


Why do we need npm?

659


what is event bubbling and event capturing in javascript?

726


What are the javascript data types?

699


Is there any ide for javascript?

719


What is slug in javascript?

690


What is difference between local and global scope in javascript ?

738


What is event target in javascript?

660


How to associate functions with objects using javascript?

680


What is difference between callback and promise?

661


How can you to add javascript to a page when performing an asynchronous postback?

660


How do you trim in javascript?

687


Is python better than javascript?

625