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 do you declare javascript?

531


How can you detect the client operating system using javascript?

589


What does 3 dots mean in javascript?

461


How do you check if a variable is an object

535


What is the difference between write and writeln in javascript?

450






In a pop-up browser window, how do you refer to the main browser window that opened it?

460


Can you use javascript to hack?

464


How to set a html document's background color?

547


What is the difference between ‘let’ and ‘const’?

557


How to create function in JavaScript?

612


When would you use var in your declaration and when you wouldn’t?

527


Explain javascript debounce function?

548


Name some of the ways in which Type Conversion is possible?

536


How do I open javascript?

505


What is the difference between childNode and children?

530