{"id":133256,"date":"2025-01-18T13:13:58","date_gmt":"2025-01-18T07:13:58","guid":{"rendered":"http:\/\/rcl-radio.ru\/?p=133256"},"modified":"2025-01-18T13:13:58","modified_gmt":"2025-01-18T07:13:58","slug":"%d1%86%d0%b8%d0%ba%d0%bb%d1%8b-for-while-javascript","status":"publish","type":"post","link":"http:\/\/rcl-radio.ru\/?p=133256","title":{"rendered":"\u0426\u0438\u043a\u043b\u044b (for, while) JavaScript"},"content":{"rendered":"<p>\u0412 JavaScript \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0438\u0434\u043e\u0432 \u0446\u0438\u043a\u043b\u043e\u0432<span style=\"color: #339933;\">,<\/span> \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u043c\u043d\u043e\u0433\u043e\u043a\u0440\u0430\u0442\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u0431\u043b\u043e\u043a\u0438 \u043a\u043e\u0434\u0430. \u041d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u0446\u0438\u043a\u043b\u044b \u2014 \u044d\u0442\u043e <span style=\"color: #000066; font-weight: bold;\">for<\/span> \u0438 while. \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0438\u0445 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435.<\/p>\n<p><strong>\u0426\u0438\u043a\u043b <span style=\"color: #000066;\">for<\/span><\/strong><br \/>\n\u0426\u0438\u043a\u043b <span style=\"color: #000066; font-weight: bold;\">for<\/span> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0438 \u043f\u043e \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432<span style=\"color: #339933;\">,<\/span> \u0442\u0430\u043a\u043e\u0439 \u043a\u0430\u043a \u043c\u0430\u0441\u0441\u0438\u0432 \u0438\u043b\u0438 \u0441\u0442\u0440\u043e\u043a\u0430. \u041e\u043d \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u0442\u0440\u0435\u0445 \u0447\u0430\u0441\u0442\u0435\u0439<span style=\"color: #339933;\">:<\/span> \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438<span style=\"color: #339933;\">,<\/span> \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u044f \u0446\u0438\u043a\u043b\u0430 \u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0430.<\/p>\n<blockquote><p><span style=\"color: #000066; font-weight: bold;\">for<\/span> <span style=\"color: #009900;\">(<\/span>let i <span style=\"color: #339933;\">=<\/span> <span style=\"color: #cc0000;\">0<\/span><span style=\"color: #339933;\">;<\/span> i <span style=\"color: #339933;\">&lt;<\/span> <span style=\"color: #cc0000;\">5<\/span><span style=\"color: #339933;\">;<\/span> i<span style=\"color: #339933;\">++<\/span><span style=\"color: #009900;\">)<\/span> <span style=\"color: #009900;\">{<\/span><br \/>\nconsole.<span style=\"color: #660066;\">log<\/span><span style=\"color: #009900;\">(<\/span>i<span style=\"color: #009900;\">)<\/span><span style=\"color: #339933;\">;<\/span><br \/>\n<span style=\"color: #009900;\">}<\/span><\/p><\/blockquote>\n<p>\u0412 \u044d\u0442\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435<span style=\"color: #339933;\">:<\/span><\/p>\n<p>i <span style=\"color: #339933;\">=<\/span> <span style=\"color: #cc0000;\">0<\/span> \u2014 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 i \u0441\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c <span style=\"color: #cc0000;\">0<\/span>.<br \/>\n<span style=\"color: #660066;\">i<\/span> <span style=\"color: #339933;\">&lt;<\/span> <span style=\"color: #cc0000;\">5<\/span> \u2014 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0443\u0441\u043b\u043e\u0432\u0438\u044f<span style=\"color: #339933;\">,<\/span> \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u0442\u0441\u044f \u043b\u0438 \u0446\u0438\u043a\u043b.<br \/>\n<span style=\"color: #660066;\">i<\/span><span style=\"color: #339933;\">++<\/span> \u2014 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f i \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0448\u0430\u0433\u0435.<\/p>\n<p>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u044d\u0442\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u0431\u0443\u0434\u0435\u0442<span style=\"color: #339933;\">:<\/span><\/p>\n<blockquote><p><span style=\"color: #cc0000;\">0<\/span><br \/>\n<span style=\"color: #cc0000;\">1<\/span><br \/>\n<span style=\"color: #cc0000;\">2<\/span><br \/>\n<span style=\"color: #cc0000;\">3<\/span><br \/>\n<span style=\"color: #cc0000;\">4<\/span><\/p><\/blockquote>\n<p><strong>\u0426\u0438\u043a\u043b <span style=\"color: #000066;\">for<\/span>&#8230;<span style=\"color: #660066;\">of<\/span><\/strong><br \/>\n\u0426\u0438\u043a\u043b <span style=\"color: #000066; font-weight: bold;\">for<\/span>&#8230;<span style=\"color: #660066;\">of<\/span> \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0431\u043e\u0440\u0430 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0439<span style=\"color: #339933;\">,<\/span> \u0442\u0430\u043a\u0438\u0445 \u043a\u0430\u043a \u043c\u0430\u0441\u0441\u0438\u0432\u044b<span style=\"color: #339933;\">,<\/span> \u0441\u0442\u0440\u043e\u043a\u0438<span style=\"color: #339933;\">,<\/span> \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0438\u0442\u0435\u0440\u0438\u0440\u0443\u0435\u043c\u044b\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u044b.<\/p>\n<blockquote><p><span style=\"color: #660066;\">let<\/span> fruits <span style=\"color: #339933;\">=<\/span> <span style=\"color: #009900;\">[<\/span><span style=\"color: #3366cc;\">&#8216;\u044f\u0431\u043b\u043e\u043a\u043e&#8217;<\/span><span style=\"color: #339933;\">,<\/span> <span style=\"color: #3366cc;\">&#8216;\u0430\u043f\u0435\u043b\u044c\u0441\u0438\u043d&#8217;<\/span><span style=\"color: #339933;\">,<\/span> <span style=\"color: #3366cc;\">&#8216;\u0433\u0440\u0443\u0448\u0430&#8217;<\/span><span style=\"color: #009900;\">]<\/span><span style=\"color: #339933;\">;<\/span><\/p>\n<p><span style=\"color: #000066; font-weight: bold;\">for<\/span> <span style=\"color: #009900;\">(<\/span>let fruit of fruits<span style=\"color: #009900;\">)<\/span> <span style=\"color: #009900;\">{<\/span><br \/>\nconsole.<span style=\"color: #660066;\">log<\/span><span style=\"color: #009900;\">(<\/span>fruit<span style=\"color: #009900;\">)<\/span><span style=\"color: #339933;\">;<\/span><br \/>\n<span style=\"color: #009900;\">}<\/span><\/p><\/blockquote>\n<p>\u0412 \u044d\u0442\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435<span style=\"color: #339933;\">:<\/span><\/p>\n<p>fruits \u2014 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044f<span style=\"color: #339933;\">,<\/span> \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u043f\u0435\u0440\u0435\u0431\u0440\u0430\u0442\u044c.<br \/>\n<span style=\"color: #660066;\">fruit<\/span> \u2014 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f<span style=\"color: #339933;\">,<\/span> \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438.<\/p>\n<p>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u044d\u0442\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u0431\u0443\u0434\u0435\u0442<span style=\"color: #339933;\">:<\/span><\/p>\n<blockquote><p>\u044f\u0431\u043b\u043e\u043a\u043e<br \/>\n\u0430\u043f\u0435\u043b\u044c\u0441\u0438\u043d<br \/>\n\u0433\u0440\u0443\u0448\u0430<\/p><\/blockquote>\n<p><strong>\u0426\u0438\u043a\u043b while<\/strong><br \/>\n\u0426\u0438\u043a\u043b while \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0431\u043b\u043e\u043a\u0430 \u043a\u043e\u0434\u0430<span style=\"color: #339933;\">,<\/span> \u043f\u043e\u043a\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u0435.<\/p>\n<blockquote><p><span style=\"color: #660066;\">let<\/span> count <span style=\"color: #339933;\">=<\/span> <span style=\"color: #cc0000;\">0<\/span><span style=\"color: #339933;\">;<\/span><\/p>\n<p>while <span style=\"color: #009900;\">(<\/span>count <span style=\"color: #339933;\">&lt;<\/span> <span style=\"color: #cc0000;\">5<\/span><span style=\"color: #009900;\">)<\/span> <span style=\"color: #009900;\">{<\/span><br \/>\nconsole.<span style=\"color: #660066;\">log<\/span><span style=\"color: #009900;\">(<\/span>count<span style=\"color: #009900;\">)<\/span><span style=\"color: #339933;\">;<\/span><br \/>\ncount<span style=\"color: #339933;\">++;<\/span><br \/>\n<span style=\"color: #009900;\">}<\/span><\/p><\/blockquote>\n<p>\u0412 \u044d\u0442\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435<span style=\"color: #339933;\">:<\/span><\/p>\n<p>count <span style=\"color: #339933;\">&lt;<\/span> <span style=\"color: #cc0000;\">5<\/span> \u2014 \u0443\u0441\u043b\u043e\u0432\u0438\u0435<span style=\"color: #339933;\">,<\/span> \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0434 \u043a\u0430\u0436\u0434\u044b\u043c \u0448\u0430\u0433\u043e\u043c.<br \/>\n<span style=\"color: #660066;\">count<\/span><span style=\"color: #339933;\">++<\/span> \u2014 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f count \u043d\u0430 \u0435\u0434\u0438\u043d\u0438\u0446\u0443.<\/p>\n<p>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u044d\u0442\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u0431\u0443\u0434\u0435\u0442<span style=\"color: #339933;\">:<\/span><\/p>\n<blockquote><p><span style=\"color: #cc0000;\">0<\/span><br \/>\n<span style=\"color: #cc0000;\">1<\/span><br \/>\n<span style=\"color: #cc0000;\">2<\/span><br \/>\n<span style=\"color: #cc0000;\">3<\/span><br \/>\n<span style=\"color: #cc0000;\">4<\/span><\/p><\/blockquote>\n<p><strong>\u0426\u0438\u043a\u043b <span style=\"color: #000066;\">do<\/span>&#8230;<span style=\"color: #660066;\">while<\/span><\/strong><br \/>\n\u0426\u0438\u043a\u043b <span style=\"color: #000066; font-weight: bold;\">do<\/span>&#8230;<span style=\"color: #660066;\">while<\/span> \u043f\u043e\u0445\u043e\u0436 \u043d\u0430 \u0446\u0438\u043a\u043b while<span style=\"color: #339933;\">,<\/span> \u043d\u043e \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u0443\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0442\u0435\u043b\u0430 \u0446\u0438\u043a\u043b\u0430 \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u043e\u0434\u0438\u043d \u0440\u0430\u0437.<\/p>\n<blockquote><p><span style=\"color: #660066;\">let<\/span> count <span style=\"color: #339933;\">=<\/span> <span style=\"color: #cc0000;\">0<\/span><span style=\"color: #339933;\">;<\/span><\/p>\n<p><span style=\"color: #000066; font-weight: bold;\">do<\/span> <span style=\"color: #009900;\">{<\/span><br \/>\nconsole.<span style=\"color: #660066;\">log<\/span><span style=\"color: #009900;\">(<\/span>count<span style=\"color: #009900;\">)<\/span><span style=\"color: #339933;\">;<\/span><br \/>\ncount<span style=\"color: #339933;\">++;<\/span><br \/>\n<span style=\"color: #009900;\">}<\/span> while <span style=\"color: #009900;\">(<\/span>count <span style=\"color: #339933;\">&lt;<\/span> <span style=\"color: #cc0000;\">5<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #339933;\">;<\/span><\/p><\/blockquote>\n<p>\u0412 \u044d\u0442\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435<span style=\"color: #339933;\">:<\/span><\/p>\n<p>\u0442\u0435\u043b\u043e \u0446\u0438\u043a\u043b\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043e\u0434\u0438\u043d \u0440\u0430\u0437<span style=\"color: #339933;\">,<\/span> \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u043b\u043e\u0436\u043d\u043e.<br \/>\n\u0446\u0438\u043a\u043b \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u0442\u0441\u044f<span style=\"color: #339933;\">,<\/span> \u043a\u043e\u0433\u0434\u0430 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 count <span style=\"color: #339933;\">&lt;<\/span> <span style=\"color: #cc0000;\">5<\/span> \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f.<br \/>\n\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u044d\u0442\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u0431\u0443\u0434\u0435\u0442<span style=\"color: #339933;\">:<\/span><\/p>\n<blockquote><p><span style=\"color: #cc0000;\">0<\/span><br \/>\n<span style=\"color: #cc0000;\">1<\/span><br \/>\n<span style=\"color: #cc0000;\">2<\/span><br \/>\n<span style=\"color: #cc0000;\">3<\/span><br \/>\n<span style=\"color: #cc0000;\">4<\/span><\/p><\/blockquote>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0446\u0438\u043a\u043b\u043e\u0432<\/p>\n<blockquote><p>let numbers <span style=\"color: #339933;\">=<\/span> <span style=\"color: #009900;\">[<\/span><span style=\"color: #cc0000;\">1<\/span><span style=\"color: #339933;\">,<\/span> <span style=\"color: #cc0000;\">2<\/span><span style=\"color: #339933;\">,<\/span> <span style=\"color: #cc0000;\">3<\/span><span style=\"color: #339933;\">,<\/span> <span style=\"color: #cc0000;\">4<\/span><span style=\"color: #339933;\">,<\/span> <span style=\"color: #cc0000;\">5<\/span><span style=\"color: #009900;\">]<\/span><span style=\"color: #339933;\">;<\/span><\/p>\n<p><span style=\"color: #006600; font-style: italic;\">\/\/ \u0426\u0438\u043a\u043b for<\/span><br \/>\n<span style=\"color: #000066; font-weight: bold;\">for<\/span> <span style=\"color: #009900;\">(<\/span>let i <span style=\"color: #339933;\">=<\/span> <span style=\"color: #cc0000;\">0<\/span><span style=\"color: #339933;\">;<\/span> i <span style=\"color: #339933;\">&lt;<\/span> numbers.<span style=\"color: #660066;\">length<\/span><span style=\"color: #339933;\">;<\/span> i<span style=\"color: #339933;\">++<\/span><span style=\"color: #009900;\">)<\/span> <span style=\"color: #009900;\">{<\/span><br \/>\nconsole.<span style=\"color: #660066;\">log<\/span><span style=\"color: #009900;\">(<\/span>numbers<span style=\"color: #009900;\">[<\/span>i<span style=\"color: #009900;\">]<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #339933;\">;<\/span><br \/>\n<span style=\"color: #009900;\">}<\/span><\/p><\/blockquote>\n<p>\u042d\u0442\u043e\u0442 \u043a\u043e\u0434 \u0432\u044b\u0432\u043e\u0434\u0438\u0442<span style=\"color: #339933;\">:<\/span><\/p>\n<blockquote><p><span style=\"color: #cc0000;\">1<\/span><br \/>\n<span style=\"color: #cc0000;\">2<\/span><br \/>\n<span style=\"color: #cc0000;\">3<\/span><br \/>\n<span style=\"color: #cc0000;\">4<\/span><br \/>\n<span style=\"color: #cc0000;\">5<\/span><\/p><\/blockquote>\n<p><strong>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/strong><br \/>\n\u0426\u0438\u043a\u043b\u044b <span style=\"color: #000066; font-weight: bold;\">for<\/span><span style=\"color: #339933;\">,<\/span> <span style=\"color: #000066; font-weight: bold;\">for<\/span>&#8230;<span style=\"color: #660066;\">of<\/span><span style=\"color: #339933;\">,<\/span> while \u0438 <span style=\"color: #000066; font-weight: bold;\">do<\/span>&#8230;<span style=\"color: #660066;\">while<\/span> \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u043c\u043d\u043e\u0433\u043e\u043a\u0440\u0430\u0442\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u0431\u043b\u043e\u043a \u043a\u043e\u0434\u0430<span style=\"color: #339933;\">,<\/span> \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u044f \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u0443\u044e \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044f\u043c\u0438 \u0438 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u043c\u0438. \u0418\u0445 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043f\u043e\u0432\u044b\u0448\u0430\u0435\u0442 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0438 \u0447\u0438\u0442\u0430\u0435\u043c\u043e\u0441\u0442\u044c \u043a\u043e\u0434\u0430<span style=\"color: #339933;\">,<\/span> \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044f \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u0434\u0443\u0431\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0434\u043d\u043e\u0433\u043e \u0438 \u0442\u043e\u0433\u043e \u0436\u0435 \u043a\u043e\u0434\u0430.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0412 JavaScript \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0438\u0434\u043e\u0432 \u0446\u0438\u043a\u043b\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u043c\u043d\u043e\u0433\u043e\u043a\u0440\u0430\u0442\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u0431\u043b\u043e\u043a\u0438 \u043a\u043e\u0434\u0430. \u041d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u0446\u0438\u043a\u043b\u044b \u2014 \u044d\u0442\u043e for \u0438 while. \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0438\u0445 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435. \u0426\u0438\u043a\u043b for \u0426\u0438\u043a\u043b for \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0438 \u043f\u043e \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432, \u0442\u0430\u043a\u043e\u0439 \u043a\u0430\u043a \u043c\u0430\u0441\u0441\u0438\u0432 \u0438\u043b\u0438 \u0441\u0442\u0440\u043e\u043a\u0430. \u041e\u043d \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u0442\u0440\u0435\u0445 \u0447\u0430\u0441\u0442\u0435\u0439: \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438, \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u044f \u0446\u0438\u043a\u043b\u0430 \u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0430. for (let i = [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":133226,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[463],"tags":[],"class_list":["post-133256","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript"],"views":386,"_links":{"self":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/133256","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=133256"}],"version-history":[{"count":1,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/133256\/revisions"}],"predecessor-version":[{"id":133257,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/133256\/revisions\/133257"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/media\/133226"}],"wp:attachment":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=133256"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=133256"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=133256"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}