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 unshift() function do in Javascript?

703


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

526


Where should I put script tags?

495


Is javascript the future?

503


What are the types of variables in javascript?

468






How do I link an external javascript file to html?

474


Which built-in method returns the calling string value converted to upper case?

518


What are the main uses of javascript?

477


Is javascript used for backend?

466


What is the use of a number object in javascript?

526


What is the disadvantage of javascript?

461


Why is currying called currying?

462


How and where javascript namespacing is used?

465


Can I learn javascript without knowing java?

478


Explain window.onload and ondocumentready?

505