Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


program showing string concatenation?

Answers were Sorted based on User's Feedback



program showing string concatenation?..

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

program showing string concatenation?..

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

program showing string concatenation?..

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

program showing string concatenation?..

Answer / prasadkonnur

var a="hello";
var b="world";

var concat= $a+$b;

Is This Answer Correct ?    4 Yes 7 No

Post New Answer

More JavaScript Interview Questions

Are Javascript and JScript the same?

0 Answers  


What is the disadvantage of javascript?

0 Answers  


What is the potential disadvantage of using a sticky session?

0 Answers  


What is the difference between local storage & session storage?

0 Answers  


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..

0 Answers  


Can you assign an anonymous function to a variable?

0 Answers  


How you will add function as a property in a javascript object? Give an example.

0 Answers  


How host objects are different from native objects in javascript?

0 Answers  


How to get the contents of an input box using javascript?

0 Answers  


Can you write a random integers function to print integers with in a range?

1 Answers  


what difference between args.length and args.length() in command line argument?

0 Answers  


Explain the role of deferred scripts in javascript?

0 Answers  


Categories