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

What is meant by object oriented programming?

455


Can you give an example showing javascript hoisting?

461


Is Javascript a Functional Programming Language?

662


Is a parabola a function?

474


What is the difference between Local Storage and Session Storage?

555






Are you concerned that older browsers don't support javascript and thus exclude a set of web users? Individual users?

590


How can we detect os of the client machine using javascript?

532


Why is object naming important to use in javascript?

504


How Does Function Hoisting Work in JavaScript?

524


what is event bubbling and event capturing in javascript?

511


How can an HTMLCollection be traversed?

551


Difference between Client side JavaScript and Server side JavaScript?

566


How to call a function inside a function in javascript?

494


How can the style/class of an element be changed?

552


What is class example?

492