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 |
How to go next field without filling the text? Which function should we use?
What is a function callback?
What is the difference between test () and exec () methods?
how to hide alphabets in java as password '*'
What’s a way to append a value to an array?
How can a value be appended to an array?
Define a named function in javascript.
What are exports and imports?
What is unobtrusive javascript?
What is a named function in JavaScript? How to define a named function?
What e means?
How long does it take to learn javascript?