Printing the number in reverse order without for/while loop.

vishalneeraj-24503
Posted by vishalneeraj-24503 under C# category on | Points: 40 | Views : 1147
Write below simple code:-
function reverse(str)
{
return str.split("").reverse().join("");
}

Comments or Responses

Login to post response