Get Reversed String - Node.js String

Node.js examples for String:Algorithm

Description

Get Reversed String

Demo Code


function getReversedString ( s )
{
  return s.split('' ).reverse().join('');
}

Related Tutorials