program showing string concatenation?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
Answer / vinoth180
var a="hello"
var b="JavaScript"
document.write(a+b);
Try this one...their is no need for the third for calculation
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / prasadkonnur
var a="hello";
var b="world";
var concat= $a+$b;
| Is This Answer Correct ? | 4 Yes | 7 No |
What is the most popular javascript library?
How to capture the Image width and height using QTP script ? Kindly answer plz.... Thanx in adavance...
How do I open javascript console?
Is JavaScript case sensitive? Give an example?
What is a noscript tag?
What is "strict mode" and how is it used in JavaScript?
Is null === undefined?
What is the difference between innerHTML and innerText?
How to clone an object in javascript?
How to create objects in JavaScript?
How to have an element invoke a javascript on selection, instead of going to a new url?
What is the benefit of arrow functions?