Hello friends! We need a collective mind.
The second day I struggle with the task. You must write the reverse function without using Array.prototype.reverse () in 30 characters. I got to this option, and it looks like this is my limit in JS knowledge. (This option is not suitable as solution.length> 30)
let reverse=a=>[...a].map(a.pop,a) In short, [... a] - creates a copy of the array, we go through each element with the help of map and using the cb function a.pop, with the context a, return the reverse sequence of the array a.
Who knows the way to cheat, share it, but better tell me where to dig.
reversetor"? xDD - MedvedevDevletand we get 30 :) - Alexey Shimansky