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 |
Are Javascript and JScript the same?
What is the disadvantage of javascript?
What is the potential disadvantage of using a sticky session?
What is the difference between local storage & session storage?
Public Static Void Main(String args[]) { System.out.in("Hai.."); } In the above code why string args[] is required.... If we are not giving command line argument..
Can you assign an anonymous function to a variable?
How you will add function as a property in a javascript object? Give an example.
How host objects are different from native objects in javascript?
How to get the contents of an input box using javascript?
Can you write a random integers function to print integers with in a range?
what difference between args.length and args.length() in command line argument?
Explain the role of deferred scripts in javascript?