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

Which is faster jquery or javascript?

480


Name the datatypes of javascript?

549


What will be the output of the following statements?

504


What is enum size?

467


What is callback?

590






What’s relationship between javascript and ecmascript?

540


What is null in programming?

527


Is javascript default scripting language?

495


What is the difference between undefined and object?

560


What happens when the recursion calling is applied on two functions?

537


Explain function hoisting in javascript?

490


How dhtml is used in javascript?

445


Difference between undefined and undeclared variables?

512


How to write a script for "select" lists using javascript

503


Is javascript pure object oriented?

438