Concat method using strings in Javascript
<!DOCTYPE html>
<html>
<head>
<title>Test page</title>
<script type="text/javascript">
/*concat function is basically used to combine many string together */
var a = " THIS WORLD IS A WONDERFUL ";
var b = "AND CLASSY";
var b = ".... RESPECT THE NATURE";
var c = a.concat(b);
console.log(c);
</script>
</head>
<body>
<h1></h1>
</body>
</html>
Comments
Post a Comment
I WOULD APPRECIATE IF YOU LEAVE A COMMENT OR YOUR FEEDBACK HERE !!!