program showing string concatenation?

Answer Posted / rajeshwar

Hi,

I think the above answer will not work for java script as
per my knowledged.

$variable_name are used in php but not in javascript. To
acheive the requirement in java just remove $ symbols.

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

var concat= a+b; alert(concat);

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I turn on javascript?

623


What is a closure javascript?

714


What is the purpose of using javascript?

698


Why is currying called currying?

651


What is function overloading in javascript?

773


How do you sort in javascript?

767


What are the string methods?

706


What is called variable?

663


If we want to return the character from a specific index which method is used?

882


What does it mean in javascript?

754


What is a named function in JavaScript? How to define a named function?

727


How to find the selected radio button immediately using the 'this' variable?

747


What are the difference between undefined and not defined in javascript?

723


How and where javascript namespacing is used?

674


How do I write script-generated content to another window?

714