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

What is the === in javascript?

539


Is javascript or python easier?

589


What is npm repository?

536


What is the reason for wrapping the entire content of a javascript source file in a function book?

661


Is javascript free to install?

608






What is difference == and === in javascript?

578


What is an undefined value in JavaScript?

636


Does html5 replace javascript?

606


What are the different boolean operators in JavaScript?

548


What is the use of blur function in JavaScript?

609


Which built-in method adds one or more elements to the end of an array and returns the new length of the array?

912


How do you target a specific frame from a hyperlink?

572


Which company developed JavaScript?

676


What is the best free ide?

558


How do you check if a variable is an object

622