program showing string concatenation?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the variables in javascript?

652


What is scope chain in javascript?

575


Explain the role of deferred scripts in javascript?

563


Which built-in method returns the string representation of the number’s value?

744


Where can I learn javascript?

604






How javascript sort function works?

637


What is the difference between Local Storage and Session Storage?

635


What is an external javascript?

559


What are the benefits of learning javascript?

608


Where can I learn javascript for free?

615


How to create array in JavaScript?

630


How can javascript make a web site easier to use? That is, are there certain javascript techniques that make it easier for people to use a web site?

706


Which built-in method sorts the elements of an array?

655


What are escape characters?

555


What is js injection?

561