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 a closure and why are they so useful to us?
What is array constructor in javascript?
Explain how to write class methods vs. Instance methods.
What's the purpose of javascript?
Can I learn javascript without html?
How to create a confirmation box?
why you used Java Script? Can it use for both client side and server side validation purpose?
12 Answers BeBo Technologies, HCL, Wipro,
Explain the role of deferred scripts in javascript?
How do we get javascript onto a web page?
Does javascript support automatic type conversion?
How do you name a variable in javascript?
What are the application of javascript?