Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js string reverse exception

function reverseString(s) 
{
   try
   {
      console.log(s.split("").reverse().join(""));
   }
   catch(e)
   {
      console.log(e.message);
      console.log(s);
   }   
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #string #reverse #exception
ADD COMMENT
Topic
Name
6+1 =