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

Can you explain the difference between call and apply?

625


Is null === undefined?

561


Whether JavaScript has concept level scope?

605


Define unescape() and escape() functions?

599


How do you include a comment in javascript?

560






Explain the difference between javascript and an asp script.

575


How does typeof operator work?

667


What are the main uses of javascript?

567


What is new keyword in javascript?

563


Describe the properties of an anonymous function in JavaScript?

805


What is the most popular javascript library?

529


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

603


Is JavaScript a case-sensitive language?

621


Which is best for front end?

548


What is the most widely used programming language?

540