Editor
Download
Open
Auto Run
<html> <head> <title>JavaScript Array reverse() function</title> </head> <body> <script type="text/javascript"> var city = ["Tokyo", "Toronto", "Mumbai", "London"]; document.write(city.reverse()); </script> </body> </html>
Preview