{"id":4208,"date":"2022-07-28T10:20:32","date_gmt":"2022-07-28T07:20:32","guid":{"rendered":"https:\/\/1.cbm.ua\/?p=4208"},"modified":"2025-01-21T16:47:53","modified_gmt":"2025-01-21T13:47:53","slug":"%d0%be%d0%bf%d0%b5%d1%80%d0%b0%d1%82%d0%be%d1%80%d1%8b-%d0%b4%d0%bb%d1%8f-%d0%b2%d1%8b%d0%b4%d0%b5%d0%bb%d0%b5%d0%bd%d0%b8-%d1%87%d0%b0%d1%81%d1%82%d0%b8-%d1%81%d1%82%d1%80%d0%be%d0%ba%d0%b8-%d0%b8","status":"publish","type":"post","link":"https:\/\/1.cbm.ua\/?p=4208","title":{"rendered":"JavaScript &#8212; \u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0434\u043b\u044f \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0447\u0430\u0441\u0442\u0438 \u043f\u043e\u0434\u0441\u0442\u0440\u043e\u043a\u0438 \u0438\u0437 \u0441\u0442\u0440\u043e\u043a\u0438."},"content":{"rendered":"<div class=\"wp-block-post-date\"><time datetime=\"2022-07-28T10:20:32+03:00\">2022-07-28<\/time><\/div>\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"js\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">let str = `Hello`;\n\n\/\/ \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043f\u0435\u0440\u0432\u044b\u0439 \u0441\u0438\u043c\u0432\u043e\u043b\nalert( str[0] ); \/\/ H<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"https:\/\/learn.javascript.ru\/string#poluchenie-podstroki\">\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u043f\u043e\u0434\u0441\u0442\u0440\u043e\u043a\u0438<\/a><\/h2>\n\n\n\n<p>\u0412 JavaScript \u0435\u0441\u0442\u044c 3 \u043c\u0435\u0442\u043e\u0434\u0430 \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043f\u043e\u0434\u0441\u0442\u0440\u043e\u043a\u0438:&nbsp;<code>substring<\/code>,&nbsp;<code>substr<\/code>&nbsp;\u0438&nbsp;<code>slice<\/code>.<code>str.slice(start [, end])<\/code><\/p>\n\n\n\n<p>\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0447\u0430\u0441\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0438 \u043e\u0442&nbsp;<code>start<\/code>&nbsp;\u0434\u043e (\u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u044f)&nbsp;<code>end<\/code>.<\/p>\n\n\n\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n\n\n\n<p><a href=\"https:\/\/learn.javascript.ru\/string#\"><\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/learn.javascript.ru\/string#\" target=\"_blank\" rel=\"noreferrer noopener\"><\/a><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"js\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">let str = \"stringify\";\n\/\/ 'strin', \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u043e\u0442 0 \u0434\u043e 5 (\u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u044f 5)\nalert( str.slice(0, 5) );\n\/\/ 's', \u043e\u0442 0 \u0434\u043e 1, \u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u044f 1, \u0442. \u0435. \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d \u0441\u0438\u043c\u0432\u043e\u043b \u043d\u0430 \u043f\u043e\u0437\u0438\u0446\u0438\u0438 0\nalert( str.slice(0, 1) );<\/pre>\n\n\n\n<p>\u0415\u0441\u043b\u0438 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442&nbsp;<code>end<\/code>&nbsp;\u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442,&nbsp;<code>slice<\/code>&nbsp;\u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0434\u043e \u043a\u043e\u043d\u0446\u0430 \u0441\u0442\u0440\u043e\u043a\u0438:<\/p>\n\n\n\n<p><a href=\"https:\/\/learn.javascript.ru\/string#\"><\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/learn.javascript.ru\/string#\" target=\"_blank\" rel=\"noreferrer noopener\"><\/a><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"js\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">let str = \"stringify\";\nalert( str.slice(2) ); \/\/ ringify, \u0441 \u043f\u043e\u0437\u0438\u0446\u0438\u0438 2 \u0438 \u0434\u043e \u043a\u043e\u043d\u0446\u0430<\/pre>\n\n\n\n<p>\u0422\u0430\u043a\u0436\u0435 \u0434\u043b\u044f&nbsp;<code>start\/end<\/code>&nbsp;\u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f. \u042d\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u043f\u043e\u0437\u0438\u0446\u0438\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0430 \u043a\u0430\u043a \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432&nbsp;<em>\u0441 \u043a\u043e\u043d\u0446\u0430 \u0441\u0442\u0440\u043e\u043a\u0438<\/em>:<\/p>\n\n\n\n<p><a href=\"https:\/\/learn.javascript.ru\/string#\"><\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/learn.javascript.ru\/string#\" target=\"_blank\" rel=\"noreferrer noopener\"><\/a><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"js\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">let str = \"stringify\";\n\n\/\/ \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u0441 \u043f\u043e\u0437\u0438\u0446\u0438\u0438 4 \u0441\u043f\u0440\u0430\u0432\u0430, \u0430 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u043c \u043d\u0430 \u043f\u043e\u0437\u0438\u0446\u0438\u0438 1 \u0441\u043f\u0440\u0430\u0432\u0430\nalert( str.slice(-4, -1) ); \/\/ gif<\/pre>\n\n\n\n<p><code>str.substring(start [, end])<\/code><\/p>\n\n\n\n<p>\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0447\u0430\u0441\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0438&nbsp;<em>\u043c\u0435\u0436\u0434\u0443<\/em>&nbsp;<code>start<\/code>&nbsp;\u0438&nbsp;<code>end<\/code>&nbsp;(\u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u044f)&nbsp;<code>end<\/code>.<\/p>\n\n\n\n<p>\u042d\u0442\u043e \u2014 \u043f\u043e\u0447\u0442\u0438 \u0442\u043e \u0436\u0435, \u0447\u0442\u043e \u0438&nbsp;<code>slice<\/code>, \u043d\u043e \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c&nbsp;<code>start<\/code>&nbsp;\u0431\u043e\u043b\u044c\u0448\u0435&nbsp;<code>end<\/code>.<br>\u0415\u0441\u043b\u0438&nbsp;<code>start<\/code>&nbsp;\u0431\u043e\u043b\u044c\u0448\u0435&nbsp;<code>end<\/code>, \u0442\u043e \u043c\u0435\u0442\u043e\u0434&nbsp;<code>substring<\/code>&nbsp;\u0441\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0442\u0430\u043a, \u043a\u0430\u043a \u0435\u0441\u043b\u0438 \u0431\u044b \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u0431\u044b\u043b\u0438 \u043f\u043e\u043c\u0435\u043d\u044f\u043d\u044b \u043c\u0435\u0441\u0442\u0430\u043c\u0438.<\/p>\n\n\n\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n\n\n\n<p><a href=\"https:\/\/learn.javascript.ru\/string#\"><\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/learn.javascript.ru\/string#\" target=\"_blank\" rel=\"noreferrer noopener\"><\/a><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"js\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">let str = \"stringify\";\n\n\/\/ \u0434\u043b\u044f substring \u044d\u0442\u0438 \u0434\u0432\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u2014 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\nalert( str.substring(2, 6) ); \/\/ \"ring\"\nalert( str.substring(6, 2) ); \/\/ \"ring\"\n\n\/\/ \u2026\u043d\u043e \u043d\u0435 \u0434\u043b\u044f slice:\nalert( str.slice(2, 6) ); \/\/ \"ring\" (\u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435)\nalert( str.slice(6, 2) ); \/\/ \"\" (\u043f\u0443\u0441\u0442\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430)<\/pre>\n\n\n\n<p>\u041e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f&nbsp;<code>substring<\/code>, \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442&nbsp;<code>slice<\/code>, \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442, \u043e\u043d\u0438 \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043a\u0430\u043a&nbsp;<code>0<\/code>.<\/p>\n\n\n\n<p><code>str.substr(start [, length])<\/code><\/p>\n\n\n\n<p>\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0447\u0430\u0441\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0438 \u043e\u0442&nbsp;<code>start<\/code>&nbsp;\u0434\u043b\u0438\u043d\u044b&nbsp;<code>length<\/code>.<\/p>\n\n\n\n<p>\u0412 \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u043f\u043e\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u043c \u043c\u0435\u0442\u043e\u0434\u0430\u043c, \u044d\u0442\u043e\u0442 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0434\u043b\u0438\u043d\u0443 \u0432\u043c\u0435\u0441\u0442\u043e \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0439 \u043f\u043e\u0437\u0438\u0446\u0438\u0438:<\/p>\n\n\n\n<p><a href=\"https:\/\/learn.javascript.ru\/string#\"><\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/learn.javascript.ru\/string#\" target=\"_blank\" rel=\"noreferrer noopener\"><\/a><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"js\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">let str = \"stringify\";\n\/\/ ring, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c 4 \u0441\u0438\u043c\u0432\u043e\u043b\u0430, \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u043f\u043e\u0437\u0438\u0446\u0438\u0438 2\nalert( str.substr(2, 4) );<\/pre>\n\n\n\n<p>\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c, \u0442\u043e\u0433\u0434\u0430 \u043f\u043e\u0437\u0438\u0446\u0438\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u0441 \u043a\u043e\u043d\u0446\u0430:<\/p>\n\n\n\n<p><a href=\"https:\/\/learn.javascript.ru\/string#\"><\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/learn.javascript.ru\/string#\" target=\"_blank\" rel=\"noreferrer noopener\"><\/a><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"js\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">let str = \"stringify\";\n\/\/ gi, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c 2 \u0441\u0438\u043c\u0432\u043e\u043b\u0430, \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u043f\u043e\u0437\u0438\u0446\u0438\u0438 4 \u0441 \u043a\u043e\u043d\u0446\u0430 \u0441\u0442\u0440\u043e\u043a\u0438\nalert( str.substr(-4, 2) );<\/pre>\n\n\n\n<p>\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0434\u044b\u0442\u043e\u0436\u0438\u043c, \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u044d\u0442\u0438 \u043c\u0435\u0442\u043e\u0434\u044b, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0437\u0430\u043f\u0443\u0442\u0430\u0442\u044c\u0441\u044f:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u043c\u0435\u0442\u043e\u0434<\/th><th>\u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442\u2026<\/th><th>\u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f<\/th><\/tr><\/thead><tbody><tr><td><code>slice(start, end)<\/code><\/td><td>\u043e\u0442&nbsp;<code>start<\/code>&nbsp;\u0434\u043e&nbsp;<code>end<\/code>&nbsp;(\u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u044f&nbsp;<code>end<\/code>)<\/td><td>\u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f<\/td><\/tr><tr><td><code>substring(start, end)<\/code><\/td><td>\u043c\u0435\u0436\u0434\u0443&nbsp;<code>start<\/code>&nbsp;\u0438&nbsp;<code>end<\/code><\/td><td>\u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0440\u0430\u0432\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u044b&nbsp;<code>0<\/code><\/td><\/tr><tr><td><code>substr(start, length)<\/code><\/td><td><code>length<\/code>&nbsp;\u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432, \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u043e\u0442&nbsp;<code>start<\/code><\/td><td>\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435&nbsp;<code>start<\/code>&nbsp;\u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>\u041a\u0430\u043a\u043e\u0439 \u043c\u0435\u0442\u043e\u0434 \u0432\u044b\u0431\u0440\u0430\u0442\u044c?<\/strong><\/p>\n\n\n\n<p>\u0412\u0441\u0435 \u044d\u0442\u0438 \u043c\u0435\u0442\u043e\u0434\u044b \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442 \u0437\u0430\u0434\u0430\u0447\u0443. \u0424\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u0443 \u043c\u0435\u0442\u043e\u0434\u0430&nbsp;<code>substr<\/code>&nbsp;\u0435\u0441\u0442\u044c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u043a: \u043e\u043d \u043e\u043f\u0438\u0441\u0430\u043d \u043d\u0435 \u0432 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 JavaScript, \u0430 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u043a \u043d\u0435\u0439 \u2014 Annex B. \u042d\u0442\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u044f\u0437\u044b\u043a\u0430 \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430\u0445, \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u043f\u043e \u0438\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u043f\u0440\u0438\u0447\u0438\u043d\u0430\u043c. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0432 \u0434\u0440\u0443\u0433\u043e\u043c \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0438, \u043e\u0442\u043b\u0438\u0447\u043d\u043e\u043c \u043e\u0442 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430, \u043e\u043d \u043c\u043e\u0436\u0435\u0442 \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c\u0441\u044f. \u041e\u0434\u043d\u0430\u043a\u043e \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u043e\u043d \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432\u0435\u0437\u0434\u0435.<\/p>\n\n\n\n<p>\u0418\u0437 \u0434\u0432\u0443\u0445 \u0434\u0440\u0443\u0433\u0438\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432,&nbsp;<code>slice<\/code>&nbsp;\u0431\u043e\u043b\u0435\u0435 \u0433\u0438\u0431\u043e\u043a, \u043e\u043d \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b, \u0438 \u0435\u0433\u043e \u043a\u043e\u0440\u043e\u0447\u0435 \u043f\u0438\u0441\u0430\u0442\u044c. \u0422\u0430\u043a \u0447\u0442\u043e, \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435, \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u043e\u043c\u043d\u0438\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0433\u043e.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u043f\u043e\u0434\u0441\u0442\u0440\u043e\u043a\u0438 \u0412 JavaScript \u0435\u0441\u0442\u044c 3 \u043c\u0435\u0442\u043e\u0434\u0430 \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043f\u043e\u0434\u0441\u0442\u0440\u043e\u043a\u0438:&nbsp;substring,&nbsp;substr&nbsp;\u0438&nbsp;slice.str.slice(start [, end]) \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0447\u0430\u0441\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0438 \u043e\u0442&nbsp;start&nbsp;\u0434\u043e (\u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u044f)&nbsp;end. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440: \u0415\u0441\u043b\u0438 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442&nbsp;end&nbsp;\u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442,&nbsp;slice&nbsp;\u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0434\u043e \u043a\u043e\u043d\u0446\u0430 \u0441\u0442\u0440\u043e\u043a\u0438: \u0422\u0430\u043a\u0436\u0435 \u0434\u043b\u044f&nbsp;start\/end&nbsp;\u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f. \u042d\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u043f\u043e\u0437\u0438\u0446\u0438\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0430 \u043a\u0430\u043a \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432&nbsp;\u0441 \u043a\u043e\u043d\u0446\u0430 \u0441\u0442\u0440\u043e\u043a\u0438: str.substring(start [, end]) \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0447\u0430\u0441\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0438&nbsp;\u043c\u0435\u0436\u0434\u0443&nbsp;start&nbsp;\u0438&nbsp;end&nbsp;(\u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u044f)&nbsp;end. \u042d\u0442\u043e \u2014 \u043f\u043e\u0447\u0442\u0438 \u0442\u043e \u0436\u0435, \u0447\u0442\u043e \u0438&nbsp;slice,&hellip;&nbsp;<a href=\"https:\/\/1.cbm.ua\/?p=4208\" rel=\"bookmark\">\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 &raquo;<span class=\"screen-reader-text\">JavaScript &#8212; \u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0434\u043b\u044f \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0447\u0430\u0441\u0442\u0438 \u043f\u043e\u0434\u0441\u0442\u0440\u043e\u043a\u0438 \u0438\u0437 \u0441\u0442\u0440\u043e\u043a\u0438.<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","footnotes":""},"categories":[7,6],"tags":[],"class_list":["post-4208","post","type-post","status-publish","format-standard","hentry","category-html","category-js"],"_links":{"self":[{"href":"https:\/\/1.cbm.ua\/index.php?rest_route=\/wp\/v2\/posts\/4208","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/1.cbm.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/1.cbm.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/1.cbm.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/1.cbm.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4208"}],"version-history":[{"count":4,"href":"https:\/\/1.cbm.ua\/index.php?rest_route=\/wp\/v2\/posts\/4208\/revisions"}],"predecessor-version":[{"id":7030,"href":"https:\/\/1.cbm.ua\/index.php?rest_route=\/wp\/v2\/posts\/4208\/revisions\/7030"}],"wp:attachment":[{"href":"https:\/\/1.cbm.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4208"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/1.cbm.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4208"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/1.cbm.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4208"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}