GeekInterview.com
Series: Subject: Topic:
Question: 1 of 29

print the number in rverse order

How can i print the numbers in descending order without using looping structure in php/javascript
Asked by: bhaskarreddy84 | Member Since Apr-2011 | Asked on: Jul 9th, 2012

View all questions by bhaskarreddy84

Showing Answers 1 - 1 of 1 Answers
Satya

Answered On : Nov 14th, 2012

Code
  1. function reverse(str){
  2.     return str.split("").reverse().join("");
  3. }

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.