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

How to test for bad numbers using javascript?

514


What is lazy instantiation in java?

431


What are trailing whitespace?

484


What is javascript ‘strict mode’?

492


What is an undefined value in JavaScript?

564






When would you use javascript closures?

477


How compare function works javascript?

452


What is difference between deep and shallow object coping in javascript?

528


Write a program to exaplain the deferred scripts using event handlers in javascript.

468


What is the difference between an array and an object?

473


To set all checkboxes to true using javascript?

559


What is the importance of