Use iOS12 test. <button onclick="location.reload()">refresh</button> <script> var arr = [1, 2, 3, 4] alert(arr) arr.reverse() </script>