<! Doctype html> <html> <head> <meta http-equiv = "content-type" content = "text/html; charset = utf-8"/> <title> один экземпляр Javascript в день-рекурсивно реализовать string string indx </title> <script> varc = varc = varc = varc = varc = strx ratx rate rate restr Str: func (x,-indx, (str + = "" + x [indx])) ;; } var arr = new Array ("Apple", "Banna", "Orange", "Apple2", "Apple3"); var arr1 = arr.slice (0) var arr3 = func (arr1, arr1.length, ""); var arr2 = arr.slice (0) .reverse (); console.log (arr2); console.log (arr); console.log (arr3); </script> </head> <body> <div id = "date"> </div> </body> </html>