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 do I use javascript to password-protect my web site?
What is the use of history object?
In javascript chained select menus are available.first select menu is worked and others are disabled.when we select any one option then the next select menu will worked having option releated to selcted in first select menu.How it possible? what is the coading of this programme?
Define anonymous function.
What are the benefits of learning javascript?
Is java is a fully object object oriented language?
What does two exclamation marks mean in javascript?
What are events in javascript?
What is a good javascript editor?
What are the difference between undefined and not defined in javascript?
What is the relationship between JavaScript and ECMAScript?
Are Typescript and Javascript the same?