Saturday, August 31, 2013

Previous Interview Question Next Interview Question
Home

Is it possible for you to write a one line JavaScript code that concatenates all strings passed into a function?

The following function should help in producing the desired result

function concatenate() 
{
  return String.prototype.concat.apply('', arguments);
}

Previous Interview Question Next Interview Question
Home

0 comments :

Post a Comment