Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

reverse array

#The original array
arr = [11, 22, 33, 44, 55]
print("Array is :",arr)
 
res = arr[::-1] #reversing using list slicing
print("Resultant new reversed array:",res)
Source by www.askpython.com #
 
PREVIOUS NEXT
Tagged: #reverse #array
ADD COMMENT
Topic
Name
1+5 =