program showing string concatenation?

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we detect os of the client machine using javascript?

532


How will you create new object in javascript?

532


What is Javascript namespacing? How and where is it used?

530


What are the variables in javascript?

568


Explain export & import in javascript?

599






How do you add an element at the end of an array?

551


Is javascript safe to download?

493


Explain “use strict” ?

520


How can you get the reference of a caller function inside a function?

606


What exactly does javascript do?

560


How to write a hello world example of javascript?

490


What is JavaScript?

677


Methods get and post in html forms - what's the difference?

503


What makes a relation a function?

496


What are different types of popup boxes available in javascript?

507