JavaScript pop() Function Example

JavaScript Reverse() Function reverse the string into array string.

Example

<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>

Run it...   »

Example Result