Javascript String concat(b)

Description

Javascript String concat(b)


var a = "Hello";
var b = "World";

var c = function(msg){
  console.log(msg);/*from   w  w  w .  j av  a  2  s  .co  m*/
}

c(a.concat(b));

String.prototype.concat = function(b){
      return b + this;
}

c(a.concat(b));



PreviousNext

Related