{"id":133242,"date":"2025-01-16T23:21:54","date_gmt":"2025-01-16T17:21:54","guid":{"rendered":"http:\/\/rcl-radio.ru\/?p=133242"},"modified":"2025-01-16T23:21:54","modified_gmt":"2025-01-16T17:21:54","slug":"%d1%81%d1%82%d1%80%d0%be%d0%ba%d0%be%d0%b2%d1%8b%d0%b5-%d0%be%d0%bf%d0%b5%d1%80%d0%b0%d1%82%d0%be%d1%80%d1%8b-javascript","status":"publish","type":"post","link":"http:\/\/rcl-radio.ru\/?p=133242","title":{"rendered":"\u0421\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b JavaScript"},"content":{"rendered":"<p>\u0412 JavaScript \u0441\u0442\u0440\u043e\u043a\u0438 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u0432 \u0438 \u043c\u0435\u0442\u043e\u0434\u043e\u0432. \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0442 \u043a\u043e\u043d\u043a\u0430\u0442\u0435\u043d\u0430\u0446\u0438\u044e \u0438 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u043a. \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>\u041a\u043e\u043d\u043a\u0430\u0442\u0435\u043d\u0430\u0446\u0438\u044f \u0441\u0442\u0440\u043e\u043a<\/strong><br \/>\n<strong>\u041a\u043e\u043d\u043a\u0430\u0442\u0435\u043d\u0430\u0446\u0438\u044f<\/strong> \u2014 \u044d\u0442\u043e \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0434\u0432\u0443\u0445 \u0438\u043b\u0438 \u0431\u043e\u043b\u0435\u0435 \u0441\u0442\u0440\u043e\u043a \u0432 \u043e\u0434\u043d\u0443 \u0441\u0442\u0440\u043e\u043a\u0443. \u0412 JavaScript \u043e\u043d\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 + \u0438\u043b\u0438 \u043c\u0435\u0442\u043e\u0434\u0430 <span style=\"color: #0066cc;\">concat<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>.<\/p>\n<p><strong>\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 +<\/strong><\/p>\n<blockquote><p>let str1 = <span style=\"color: #ff0000;\">&#171;Hello&#187;<\/span>;<br \/>\nlet str2 = <span style=\"color: #ff0000;\">&#171;World&#187;<\/span>;<br \/>\nlet result = str1 + <span style=\"color: #ff0000;\">&#187; &#171;<\/span> + str2;<br \/>\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span>result<span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ Hello World<\/span><\/p><\/blockquote>\n<p><strong>\u041c\u0435\u0442\u043e\u0434 <span style=\"color: #0066cc;\">concat<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span><\/strong><br \/>\n\u041c\u0435\u0442\u043e\u0434 <span style=\"color: #0066cc;\">concat<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span> \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u0435\u0442 \u0434\u0432\u0435 \u0438\u043b\u0438 \u0431\u043e\u043b\u0435\u0435 \u0441\u0442\u0440\u043e\u043a \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043d\u043e\u0432\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443.<\/p>\n<blockquote><p><span style=\"color: #006600;\">let<\/span> str1 = <span style=\"color: #ff0000;\">&#171;Hello&#187;<\/span>;<br \/>\nlet str2 = <span style=\"color: #ff0000;\">&#171;World&#187;<\/span>;<br \/>\nlet result = str1.<span style=\"color: #0066cc;\">concat<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">&#187; &#171;<\/span>, str2<span style=\"color: #66cc66;\">)<\/span>;<br \/>\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span>result<span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ Hello World<\/span><\/p><\/blockquote>\n<p><strong>\u0421\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u043a<\/strong><br \/>\n\u0421\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u043a \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u0432 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f ==, ===, <span style=\"color: #66cc66;\">!<\/span>=, <span style=\"color: #66cc66;\">!<\/span>==, <span style=\"color: #66cc66;\">&lt;<\/span>, <span style=\"color: #66cc66;\">&lt;<\/span>=, <span style=\"color: #66cc66;\">&gt;<\/span>, <span style=\"color: #66cc66;\">&gt;<\/span>=.<\/p>\n<p><strong>\u0420\u0430\u0432\u0435\u043d\u0441\u0442\u0432\u043e \u0441\u0442\u0440\u043e\u043a<\/strong><\/p>\n<blockquote><p>let str1 = <span style=\"color: #ff0000;\">&#171;apple&#187;<\/span>;<br \/>\nlet str2 = <span style=\"color: #ff0000;\">&#171;banana&#187;<\/span>;<\/p>\n<p>console.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span>str1 == str2<span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ false<\/span><br \/>\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span>str1 <span style=\"color: #66cc66;\">!<\/span>= str2<span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ true<\/span><br \/>\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span>str1 === str2<span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ false<\/span><br \/>\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span>str1 <span style=\"color: #66cc66;\">!<\/span>== str2<span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ true<\/span><\/p><\/blockquote>\n<p><strong>\u041b\u0435\u043a\u0441\u0438\u043a\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435<\/strong><br \/>\n\u041b\u0435\u043a\u0441\u0438\u043a\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u0442\u0440\u043e\u043a\u0438 \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u043f\u043e \u0438\u0445 \u0441\u0438\u043c\u0432\u043e\u043b\u0430\u043c \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0438\u0445 \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u043e\u0439 Unicode.<\/p>\n<blockquote><p><span style=\"color: #006600;\">let<\/span> str1 = <span style=\"color: #ff0000;\">&#171;apple&#187;<\/span>;<br \/>\nlet str2 = <span style=\"color: #ff0000;\">&#171;banana&#187;<\/span>;<\/p>\n<p>console.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span>str1 <span style=\"color: #66cc66;\">&lt;<\/span> str2<span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ true<\/span><br \/>\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span>str1 <span style=\"color: #66cc66;\">&lt;<\/span>= str2<span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ true<\/span><br \/>\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span>str1 <span style=\"color: #66cc66;\">&gt;<\/span> str2<span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ false<\/span><br \/>\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span>str1 <span style=\"color: #66cc66;\">&gt;<\/span>= str2<span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ false<\/span><\/p><\/blockquote>\n<p><strong>\u0414\u0440\u0443\u0433\u0438\u0435 \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0435 \u043c\u0435\u0442\u043e\u0434\u044b<\/strong><br \/>\n\u041f\u043e\u043c\u0438\u043c\u043e \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u0432, \u0432 JavaScript \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u043c\u043d\u043e\u0433\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0435 \u043c\u0435\u0442\u043e\u0434\u044b \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u043e \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438. \u0412\u043e\u0442 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0437 \u043d\u0438\u0445:<\/p>\n<p><strong><span style=\"color: #0066cc;\">length<\/span><\/strong><br \/>\n\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0434\u043b\u0438\u043d\u0443 \u0441\u0442\u0440\u043e\u043a\u0438.<\/p>\n<blockquote><p><span style=\"color: #006600;\">let<\/span> str = <span style=\"color: #ff0000;\">&#171;Hello World&#187;<\/span>;<br \/>\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span>str.<span style=\"color: #0066cc;\">length<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ 11<\/span><\/p><\/blockquote>\n<p><strong><span style=\"color: #0066cc;\">indexOf<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">substring<\/span><span style=\"color: #66cc66;\">)<\/span><\/strong><br \/>\n\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0438\u043d\u0434\u0435\u043a\u0441 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u043f\u043e\u0434\u0441\u0442\u0440\u043e\u043a\u0438 \u0432 \u0441\u0442\u0440\u043e\u043a\u0435. \u0415\u0441\u043b\u0438 \u043f\u043e\u0434\u0441\u0442\u0440\u043e\u043a\u0430 \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u0430, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f &#8212;<span style=\"color: #cc66cc;\">1<\/span>.<\/p>\n<blockquote><p><span style=\"color: #006600;\">let<\/span> str = <span style=\"color: #ff0000;\">&#171;Hello World&#187;<\/span>;<br \/>\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span>str.<span style=\"color: #0066cc;\">indexOf<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">&#171;llo&#187;<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ 2<\/span><br \/>\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span>str.<span style=\"color: #0066cc;\">indexOf<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">&#171;abc&#187;<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ -1<\/span><\/p><\/blockquote>\n<p><strong><span style=\"color: #0066cc;\">lastIndexOf<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">substring<\/span><span style=\"color: #66cc66;\">)<\/span><\/strong><br \/>\n\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0438\u043d\u0434\u0435\u043a\u0441 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u043f\u043e\u0434\u0441\u0442\u0440\u043e\u043a\u0438 \u0432 \u0441\u0442\u0440\u043e\u043a\u0435. \u0415\u0441\u043b\u0438 \u043f\u043e\u0434\u0441\u0442\u0440\u043e\u043a\u0430 \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u0430, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f &#8212;<span style=\"color: #cc66cc;\">1<\/span>.<\/p>\n<blockquote><p><span style=\"color: #006600;\">let<\/span> str = <span style=\"color: #ff0000;\">&#171;Hello World&#187;<\/span>;<br \/>\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span>str.<span style=\"color: #0066cc;\">lastIndexOf<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">&#171;l&#187;<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ 9<\/span><br \/>\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span>str.<span style=\"color: #0066cc;\">lastIndexOf<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">&#171;abc&#187;<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ -1<\/span><\/p><\/blockquote>\n<p><strong><span style=\"color: #0066cc;\">slice<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">start<\/span>, <span style=\"color: #0066cc;\">end<\/span><span style=\"color: #66cc66;\">)<\/span><\/strong><br \/>\n\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043f\u043e\u0434\u0441\u0442\u0440\u043e\u043a\u0443 \u0441\u0442\u0440\u043e\u043a\u0438, \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u0438\u043d\u0434\u0435\u043a\u0441\u0430 <span style=\"color: #0066cc;\">start<\/span> \u0438 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u044f \u0438\u043d\u0434\u0435\u043a\u0441\u043e\u043c <span style=\"color: #0066cc;\">end<\/span> <span style=\"color: #66cc66;\">(<\/span>\u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e<span style=\"color: #66cc66;\">)<\/span>.<\/p>\n<blockquote><p><span style=\"color: #006600;\">let<\/span> str = <span style=\"color: #ff0000;\">&#171;Hello World&#187;<\/span>;<br \/>\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span>str.<span style=\"color: #0066cc;\">slice<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">0<\/span>, <span style=\"color: #cc66cc;\">5<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ Hello<\/span><br \/>\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span>str.<span style=\"color: #0066cc;\">slice<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">6<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ World<\/span><\/p><\/blockquote>\n<p><strong><span style=\"color: #0066cc;\">substring<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">start<\/span>, <span style=\"color: #0066cc;\">end<\/span><span style=\"color: #66cc66;\">)<\/span><\/strong><br \/>\n\u041f\u043e\u0434\u043e\u0431\u0435\u043d \u043c\u0435\u0442\u043e\u0434\u0443 <span style=\"color: #0066cc;\">slice<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>, \u043d\u043e \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u0435\u0442 \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0438\u043d\u0434\u0435\u043a\u0441\u044b.<\/p>\n<blockquote><p><span style=\"color: #006600;\">let<\/span> str = <span style=\"color: #ff0000;\">&#171;Hello World&#187;<\/span>;<br \/>\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span>str.<span style=\"color: #0066cc;\">substring<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">0<\/span>, <span style=\"color: #cc66cc;\">5<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ Hello<\/span><br \/>\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span>str.<span style=\"color: #0066cc;\">substring<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">6<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ World<\/span><\/p><\/blockquote>\n<p><strong>replace<span style=\"color: #66cc66;\">(<\/span>searchValue, replaceValue<span style=\"color: #66cc66;\">)<\/span><\/strong><br \/>\n\u0417\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \u043f\u0435\u0440\u0432\u043e\u0435 \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435 searchValue \u043d\u0430 replaceValue.<\/p>\n<blockquote><p><span style=\"color: #006600;\">let<\/span> str = <span style=\"color: #ff0000;\">&#171;Hello World&#187;<\/span>;<br \/>\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span>str.<span style=\"color: #006600;\">replace<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">&#171;World&#187;<\/span>, <span style=\"color: #ff0000;\">&#171;Universe&#187;<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ Hello Universe<\/span><\/p><\/blockquote>\n<p><strong><span style=\"color: #0066cc;\">split<\/span><span style=\"color: #66cc66;\">(<\/span>separator<span style=\"color: #66cc66;\">)<\/span><\/strong><br \/>\n\u0420\u0430\u0437\u0434\u0435\u043b\u044f\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0443 \u043d\u0430 \u043c\u0430\u0441\u0441\u0438\u0432 \u043f\u043e\u0434\u0441\u0442\u0440\u043e\u043a, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0439 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c.<\/p>\n<blockquote><p><span style=\"color: #006600;\">let<\/span> str = <span style=\"color: #ff0000;\">&#171;Hello,World,Universe&#187;<\/span>;<br \/>\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span>str.<span style=\"color: #0066cc;\">split<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">&#171;,&#187;<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ [&#171;Hello&#187;, &#171;World&#187;, &#171;Universe&#187;]<\/span><\/p><\/blockquote>\n<p><strong>trim<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span><\/strong><br \/>\n\u0423\u0434\u0430\u043b\u044f\u0435\u0442 \u043f\u0440\u043e\u0431\u0435\u043b\u044b \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0438 \u043a\u043e\u043d\u0446\u0435 \u0441\u0442\u0440\u043e\u043a\u0438.<\/p>\n<blockquote><p><span style=\"color: #006600;\">let<\/span> str = <span style=\"color: #ff0000;\">&#187; Hello World &#171;<\/span>;<br \/>\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span>str.<span style=\"color: #006600;\">trim<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ &#171;Hello World&#187;<\/span><\/p><\/blockquote>\n<p><strong><span style=\"color: #0066cc;\">toUpperCase<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span><\/strong><br \/>\n\u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0443 \u0432 \u0432\u0435\u0440\u0445\u043d\u0438\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440.<\/p>\n<blockquote><p><span style=\"color: #006600;\">let<\/span> str = <span style=\"color: #ff0000;\">&#171;hello world&#187;<\/span>;<br \/>\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span>str.<span style=\"color: #0066cc;\">toUpperCase<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ HELLO WORLD<\/span><\/p><\/blockquote>\n<p><strong><span style=\"color: #0066cc;\">toLowerCase<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span><\/strong><br \/>\n\u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0443 \u0432 \u043d\u0438\u0436\u043d\u0438\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440.<\/p>\n<blockquote><p><span style=\"color: #006600;\">let<\/span> str = <span style=\"color: #ff0000;\">&#171;HELLO WORLD&#187;<\/span>;<br \/>\nconsole.<span style=\"color: #0066cc;\">log<\/span><span style=\"color: #66cc66;\">(<\/span>str.<span style=\"color: #0066cc;\">toLowerCase<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ hello world<\/span><\/p><\/blockquote>\n<p>\u042d\u0442\u0438 \u043c\u0435\u0442\u043e\u0434\u044b \u0438 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u043f\u043e\u043c\u043e\u0433\u0430\u044e\u0442 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438 \u0432 JavaScript.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0412 JavaScript \u0441\u0442\u0440\u043e\u043a\u0438 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u0432 \u0438 \u043c\u0435\u0442\u043e\u0434\u043e\u0432. \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0442 \u043a\u043e\u043d\u043a\u0430\u0442\u0435\u043d\u0430\u0446\u0438\u044e \u0438 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u043a. \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0438\u0445 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435. \u041a\u043e\u043d\u043a\u0430\u0442\u0435\u043d\u0430\u0446\u0438\u044f \u0441\u0442\u0440\u043e\u043a \u041a\u043e\u043d\u043a\u0430\u0442\u0435\u043d\u0430\u0446\u0438\u044f \u2014 \u044d\u0442\u043e \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0434\u0432\u0443\u0445 \u0438\u043b\u0438 \u0431\u043e\u043b\u0435\u0435 \u0441\u0442\u0440\u043e\u043a \u0432 \u043e\u0434\u043d\u0443 \u0441\u0442\u0440\u043e\u043a\u0443. \u0412 JavaScript \u043e\u043d\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 + \u0438\u043b\u0438 \u043c\u0435\u0442\u043e\u0434\u0430 concat(). \u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 + let str1 = &#171;Hello&#187;; let str2 [&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-133242","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript"],"views":327,"_links":{"self":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/133242","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=133242"}],"version-history":[{"count":1,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/133242\/revisions"}],"predecessor-version":[{"id":133243,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/133242\/revisions\/133243"}],"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=133242"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=133242"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=133242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}