{"id":1206,"date":"2020-07-02T12:41:21","date_gmt":"2020-07-02T12:41:21","guid":{"rendered":"https:\/\/lvboard.infostore.in.ua\/?p=1206"},"modified":"2020-07-02T12:41:21","modified_gmt":"2020-07-02T12:41:21","slug":"%d0%bc%d0%b0%d0%b9%d0%b1%d1%83%d1%82%d0%bd%d1%94-javascript","status":"publish","type":"post","link":"https:\/\/lvboard.infostore.in.ua\/?p=1206","title":{"rendered":"\u041c\u0430\u0439\u0431\u0443\u0442\u043d\u0454 JavaScript"},"content":{"rendered":"\n<p>\u041e\u0441\u0442\u0430\u043d\u043d\u0456 \u0440\u043e\u043a\u0438 JavaScript \u0440\u043e\u0437\u0432\u0438\u0432\u0430\u0454\u0442\u044c\u0441\u044f \u0434\u0443\u0436\u0435 \u0448\u0432\u0438\u0434\u043a\u043e, \u0430&nbsp;\u043f\u043e\u0447\u0438\u043d\u0430\u044e\u0447\u0438 \u0437\u0430&nbsp;2015 \u0440\u043e\u043a\u0443 \u0432\u0456\u043d \u043d\u0435\u0432\u043f\u0438\u043d\u043d\u043e \u0440\u043e\u0437\u0432\u0438\u0432\u0430\u0454\u0442\u044c\u0441\u044f \u0437&nbsp;\u0440\u043e\u043a\u0443 \u0432&nbsp;\u0440\u0456\u043a \u0456&nbsp;\u0441\u0442\u0430\u0454 \u0431\u0456\u043b\u044c\u0448 \u0433\u043d\u0443\u0447\u043a\u0438\u043c.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>\u041d\u043e\u0432\u0456 \u0432\u0435\u0440\u0441\u0456\u0457 \u0441\u043f\u0435\u0446\u0438\u0444\u0456\u043a\u0430\u0446\u0456\u0457 ECMAScript \u0434\u043e\u043f\u043e\u0432\u043d\u044e\u044e\u0442\u044c\u0441\u044f \u043a\u043e\u0436\u043d\u043e\u0433\u043e \u0440\u043e\u043a\u0443 \u0456&nbsp;\u043d\u043e\u0432\u0456 \u043f\u0440\u043e\u043f\u043e\u0437\u0438\u0446\u0456\u0457 \u0434\u043b\u044f \u0437\u043c\u0456\u043d \u0444\u0456\u043d\u0430\u043b\u0456\u0437\u0443\u044e\u0442\u044c\u0441\u044f \u0448\u0432\u0438\u0434\u0448\u0435 \u043d\u0456\u0436 \u043c\u043e\u0436\u043d\u0430 \u043a\u043e\u043b\u0438\u0441\u044c \u0431\u0443\u043b\u043e \u0443\u044f\u0432\u0438\u0442\u0438. \u0422\u0430\u043a, \u0431\u0430\u0433\u0430\u0442\u043e \u043d\u043e\u0432\u043e\u0433\u043e \u0431\u0443\u043b\u043e \u0437\u0430\u043f\u0440\u043e\u043f\u043e\u043d\u043e\u0432\u0430\u043d\u043e \u0442\u0430&nbsp;\u0432\u043a\u043b\u044e\u0447\u0435\u043d\u043e \u0456&nbsp;\u0443&nbsp;\u043d\u043e\u0432\u0438\u0439 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442 ES2020.<\/p>\n\n\n\n<p>\u042f\u043a\u0449\u043e \u043f\u043e\u0432\u0435\u0440\u043d\u0443\u0442\u0438\u0441\u044f \u0434\u043e&nbsp;\u0456\u0441\u0442\u043e\u0440\u0456\u0457, \u0432\u0441\u0435 \u043f\u043e\u0447\u0430\u043b\u043e\u0441\u044c \u0437\u0456&nbsp;\u0437\u043c\u0430\u0433\u0430\u043d\u043d\u044f, \u044f\u043a\u0435 \u0431\u0443\u043b\u043e \u043d\u0430\u0437\u0432\u0430\u043d\u0435 \u00ab\u0432\u0456\u0439\u043d\u043e\u044e \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0456\u0432\u00bb. \u0426\u044f&nbsp;\u0432\u0456\u0439\u043d\u0430, \u044f\u043a\u0430 \u0432\u0456\u0434\u0431\u0443\u043b\u0430\u0441\u044c \u0432&nbsp;90-\u0445&nbsp;\u0440\u043e\u043a\u0430\u0445 \u043c\u0456\u0436 \u043a\u043e\u043c\u043f\u0430\u043d\u0456\u044f\u043c\u0438 Microsoft (Internet Explorer) \u0442\u0430&nbsp;Netscape Communications (Navigator), \u0437\u0430\u043b\u043e\u043b\u043e\u0436\u0438\u043b\u0430 \u043f\u043e\u0447\u0430\u0442\u043e\u043a \u0432\u0438\u043d\u0438\u043a\u043d\u0435\u043d\u043d\u044f \u0441\u043f\u0435\u0446\u0438\u0444\u0456\u043a\u0430\u0446\u0456\u0457 ECMAScript.<\/p>\n\n\n\n<p>\u0421\u043f\u0435\u0446\u0438\u0444\u0456\u043a\u0430\u0446\u0456\u044f ECMAScript \u0454&nbsp;\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0438\u0437\u043e\u0432\u0430\u043d\u043e\u044e \u0441\u043f\u0435\u0446\u0438\u0444\u0456\u043a\u0430\u0446\u0456\u0454\u044e \u043c\u043e\u0432\u0438 \u0441\u0446\u0435\u043d\u0430\u0440\u0456\u0457\u0432, \u0440\u043e\u0437\u0440\u043e\u0431\u043b\u0435\u043d\u043e\u0457 \u0411\u0440\u0435\u043d\u0434\u0430\u043d\u043e\u043c \u0410\u0439\u0445\u043e\u043c \u0437&nbsp;Netscape. \u041f\u0435\u0440\u0448\u0435 \u0432\u0438\u0434\u0430\u043d\u043d\u044f ECMA-262 \u0431\u0443\u043b\u043e \u043f\u0440\u0438\u0439\u043d\u044f\u0442\u043e \u0443&nbsp;\u0447\u0435\u0440\u0432\u043d\u0456 1997&nbsp;\u0440\u043e\u043a\u0443. \u0417&nbsp;\u0442\u043e\u0433\u043e \u0447\u0430\u0441\u0443 \u0431\u0443\u043b\u043e \u0432\u0438\u0434\u0430\u043d\u043e \u043a\u0456\u043b\u044c\u043a\u0430 \u0432\u0438\u0434\u0430\u043d\u044c \u043c\u043e\u0432\u043d\u043e\u0433\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0443.<\/p>\n\n\n\n<p>\u041f\u0456\u0441\u043b\u044f \u043f\u0435\u0440\u0448\u043e\u0433\u043e \u0432\u0438\u0434\u0430\u043d\u043d\u044f, \u0443&nbsp;\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0438\u0445 \u0440\u043e\u043a\u0430\u0445 \u043f\u043e\u0441\u043b\u0456\u0434\u0443\u0432\u0430\u043b\u0438 \u0434\u0432\u0456 \u0456\u043d\u0448\u0456 \u0432\u0435\u0440\u0441\u0456\u0457 \u0434\u043e&nbsp;\u0447\u0435\u0442\u0432\u0435\u0440\u0442\u043e\u0433\u043e \u0434\u043e\u043f\u043e\u0432\u043d\u0435\u043d\u043d\u044f, \u044f\u043a\u0435 \u0431\u0443\u043b\u043e, \u043d\u0430&nbsp;\u0436\u0430\u043b\u044c, \u0432\u0456\u0434\u043a\u0438\u043d\u0443\u0442\u0435 \u0456&nbsp;\u043d\u0435&nbsp;\u0440\u0435\u0430\u043b\u0456\u0437\u043e\u0432\u0430\u043d\u0435.<\/p>\n\n\n\n<p>\u041f\u0456\u0441\u043b\u044f 10&nbsp;\u0440\u0456\u0447\u043d\u043e\u0433\u043e \u0437\u0430\u0442\u0438\u0448\u0448\u044f, \u0437\u2019\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u043f\u2019\u044f\u0442\u0430 \u0432\u0435\u0440\u0441\u0456\u044f, ES5, \u044f\u043a\u0430 \u0432\u0438\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u043d\u0430\u0439\u0431\u0456\u043b\u044c\u0448 \u0440\u043e\u0437\u0448\u0438\u0440\u0435\u043d\u043e\u044e \u0456&nbsp;\u043f\u0440\u0438\u043d\u0435\u0441\u043b\u0430 \u043a\u0430\u0440\u0434\u0438\u043d\u0430\u043b\u044c\u043d\u0456 \u0437\u043c\u0456\u043d\u0438, \u0430&nbsp;\u0437&nbsp;\u0448\u043e\u0441\u0442\u043e\u044e \u0432\u0435\u0440\u0441\u0456\u0454\u044e, \u043f\u043e\u0447\u0438\u043d\u0430\u044e\u0447\u0438 \u0437&nbsp;2015&nbsp;\u0440\u043e\u043a\u0443, \u0441\u043f\u0435\u0446\u0438\u0444\u0456\u043a\u0430\u0446\u0456\u044e \u0431\u0443\u043b\u043e \u0432\u0438\u0440\u0456\u0448\u0435\u043d\u043e \u0434\u043e\u043f\u043e\u0432\u043d\u044e\u0432\u0430\u0442\u0438 \u043a\u043e\u0436\u043d\u043e\u0433\u043e \u0440\u043e\u043a\u0443.<\/p>\n\n\n\n<p>\u0422\u0430\u043a\u0438\u043c \u0447\u0438\u043d\u043e\u043c, \u043d\u043e\u0432\u0443 \u0432\u0435\u0440\u0441\u0456\u044e \u0440\u0435\u0430\u043b\u0456\u0437\u043e\u0432\u0443\u0432\u0443\u044e\u0442\u044c, \u0443&nbsp;\u0432\u0441\u0456\u0445 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430\u0445, \u0446\u044c\u043e\u0433\u043e \u0440\u043e\u043a\u0443&nbsp;\u2014 \u0443&nbsp;2020\u043c\u0443.<\/p>\n\n\n\n<p>JavaScript&nbsp;\u2014 \u0446\u0435&nbsp;\u0440\u0435\u0430\u043b\u0456\u0437\u0430\u0446\u0456\u044f \u0441\u043f\u0435\u0446\u0438\u0444\u0456\u043a\u0430\u0446\u0456\u0457 ECMAScript. \u0426\u0435&nbsp;\u043e\u0437\u043d\u0430\u0447\u0430\u0454, \u0449\u043e&nbsp;\u043f\u043e&nbsp;\u043c\u0456\u0440\u0456 \u0442\u043e\u0433\u043e, \u044f\u043a&nbsp;\u0443&nbsp;\u0441\u043f\u0435\u0446\u0438\u0444\u0456\u043a\u0430\u0446\u0456\u0457 \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043d\u043e\u0432\u0456 \u0447\u043e\u0440\u043d\u043e\u0432\u0438\u043a\u0438 (\u043f\u0440\u043e \u043d\u0438\u0445 \u0434\u043e\u043a\u043b\u0430\u0434\u043d\u0456\u0448\u0435 \u0440\u043e\u0437\u043a\u0430\u0436\u0443 \u043d\u0438\u0436\u0447\u0435) \u0447\u0438&nbsp;\u043e\u043f\u0443\u0431\u043b\u0456\u043a\u043e\u0432\u0430\u043d\u0456 \u0440\u0435\u0434\u0430\u043a\u0446\u0456\u0457, \u0440\u043e\u0437\u0440\u043e\u0431\u043d\u0438\u043a\u0438 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0456\u0432 \u0442\u0430&nbsp;\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c, \u0442\u0438\u043f\u0443 Node.js, \u043f\u043e\u0432\u0438\u043d\u043d\u0456 \u043f\u043e\u0441\u043b\u0456\u0434\u043e\u0432\u043d\u043e \u0432\u0431\u0443\u0434\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u043d\u043e\u0432\u0438\u0439 \u0444\u0443\u043d\u043a\u0446\u0456\u043e\u043d\u0430\u043b.<\/p>\n\n\n\n<p>\u0414\u043b\u044f \u0446\u044c\u043e\u0433\u043e \u0432\u043d\u043e\u0441\u044f\u0442\u0441\u044f \u0437\u043c\u0456\u043d\u0438 \u0432&nbsp;\u0440\u0443\u0448\u0456\u044f\u0445 (engines), \u044f\u043a\u0456 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0438 \u0442\u0430&nbsp;\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0438 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u044e\u0442\u044c \u0434\u043b\u044f \u0456\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0446\u0456\u0457 \u0456&nbsp;\u0432\u0438\u043f\u043e\u0432\u043d\u0435\u043d\u043d\u044f \u043a\u043e\u0434\u0443 JavaScript.<\/p>\n\n\n\n<p>\u041c\u043e\u0436\u043b\u0438\u0432\u043e \u0443&nbsp;\u0432\u0430\u0441 \u0432\u0438\u043d\u0438\u043a\u043b\u043e \u043f\u0438\u0442\u0430\u043d\u043d\u044f, \u043d\u0430\u0432\u0456\u0449\u043e \u0432\u0437\u0430\u0433\u0430\u043b\u0456 \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u0430 \u0441\u043f\u0435\u0446\u0438\u0444\u0456\u043a\u0430\u0446\u0456\u044f ECMAScript?<\/p>\n\n\n\n<p>\u0412&nbsp;\u0440\u0456\u0437\u043d\u0438\u0445 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430\u0445 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u044e\u0442\u044c\u0441\u044f \u0440\u0456\u0437\u043d\u0456 \u0440\u0443\u0448\u0456\u0457 JavaScript, \u043d\u0430\u043f\u043e\u0434\u043e\u0431\u0456, V8&nbsp;\u0432 Chrome, SpiderMonkey \u0432&nbsp;Firefox, \u0442\u0430&nbsp;\u0456\u043d. \u0422\u043e\u0431\u0442\u043e, \u043a\u043e\u043b\u0438 \u0432\u0438&nbsp;\u043f\u0438\u0448\u0435\u0442\u0435 \u043d\u0430&nbsp;JavaScript, \u0432\u044b&nbsp;\u043e\u0447\u0456\u043a\u0443\u0454\u0442\u0435, \u0449\u043e&nbsp;\u0432\u0441\u0456 \u0440\u0443\u0448\u0456\u0457 \u0443&nbsp;\u0432\u0441\u0456\u0445 \u0441\u0435\u0440\u0435\u0434\u043e\u0432\u0438\u0449\u0430\u0445 \u0431\u0443\u0434\u0443\u0442\u044c \u0440\u0435\u0430\u043b\u0456\u0437\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0432\u0430\u0448 \u043a\u043e\u0434 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e. \u0410\u043b\u0435, \u0431\u0435\u0437 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0438\u0437\u043e\u0432\u0430\u043d\u043e\u0457 \u0441\u043f\u0435\u0446\u0438\u0444\u0456\u043a\u0430\u0446\u0456\u0457 \u0431\u0443\u0434\u044c \u044f\u043a\u0438\u0439 \u0437&nbsp;\u0440\u0443\u0448\u0456\u0457\u0432 \u0440\u0435\u0430\u043b\u0456\u0437\u043e\u0432\u0443\u0432\u0430\u0432 \u0431\u0438&nbsp;\u0432\u0430\u0448 \u043a\u043e\u0434 \u043d\u0430&nbsp;JavaScript \u044f\u043a&nbsp;\u0439\u043e\u043c\u0443 \u0437\u0430\u043c\u0430\u043d\u0435\u0442\u044c\u0441\u044f. \u0406&nbsp;\u0446\u0435, \u043d\u0430&nbsp;\u0436\u0430\u043b\u044c, \u0434\u043b\u044f \u043d\u0430\u0441 \u0446\u0435&nbsp;\u0431\u0443\u043b\u043e&nbsp;\u0431 \u043a\u0430\u0442\u0430\u0441\u0442\u0440\u043e\u0444\u043e\u044e, \u0433\u0456\u0440\u0448\u043e\u0433\u043e \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0443 \u0447\u0438\u043c \u043f\u0456\u0434\u0442\u0440\u0438\u043c\u043a\u0430 Internet Explorer \ud83d\ude42<\/p>\n\n\n\n<p>\u042f\u043a\u0449\u043e \u0437\u0430\u0433\u043b\u0438\u0431\u0438\u0442\u0438\u0441\u044c \u0432&nbsp;\u043f\u0440\u043e\u0446\u0435\u0441 \u043f\u0440\u0438\u0439\u043d\u044f\u0442\u0442\u044f \u0440\u0456\u0448\u0435\u043d\u044c \u0449\u043e\u0434\u043e \u043d\u043e\u0432\u0438\u0445 \u0437\u043c\u0456\u043d \u0443&nbsp;JavaScript. \u0422\u043e&nbsp;\u0432\u0456\u0434 \u0456\u0434\u0435\u0457 \u0434\u043e&nbsp;\u043f\u0443\u0431\u043b\u0456\u043a\u0430\u0446\u0456\u0457 \u043f\u0440\u043e\u043f\u043e\u0437\u0438\u0446\u0456\u0457 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442, \u0437\u0432\u0456\u0441\u043d\u043e, \u043f\u0435\u0432\u043d\u0438\u0439 \u0447\u0430\u0441, \u0442\u0430&nbsp;\u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0432\u0430\u0436\u043b\u0438\u0432\u0438\u0445 \u0441\u0442\u0430\u0434\u0456\u0439.<br>\u0412\u043e\u043d\u0438 \u043f\u0440\u043e\u043d\u0443\u043c\u0435\u0440\u043e\u0432\u0430\u043d\u0456 \u0437&nbsp;0&nbsp;\u0434\u043e&nbsp;4. \u0414\u0443\u043c\u0430\u044e, \u043c\u043e\u0436\u043b\u0438\u0432\u043e \u0446\u0435&nbsp;\u043f\u043e\u0432\u2019\u044f\u0437\u0430\u043d\u043e \u0437&nbsp;\u0442\u0438\u043c \u0449\u043e&nbsp;\u0432\u0456\u0434\u0440\u0430\u0445\u0443\u043d\u043e\u043a \u0437&nbsp;\u043d\u0443\u043b\u044f \u0434\u043b\u044f \u043d\u0430\u0441 \u0446\u0435&nbsp;\u0432\u0436\u0435 \u043d\u043e\u0440\u043c\u0430))<\/p>\n\n\n\n<p>0: strawman&nbsp;\u2014 \u0426\u0435&nbsp;\u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044f \u0456\u0434\u0435\u0457.<\/p>\n\n\n\n<p>1: proposal&nbsp;\u2014 \u041f\u0440\u043e\u043f\u043e\u0437\u0438\u0446\u0456\u044f, \u0449\u043e&nbsp;\u0432\u0456\u0434\u0441\u0442\u043e\u044e\u0454\u0442\u044c\u0441\u044f \u0445\u043e\u0447\u0430&nbsp;\u0431 \u043e\u0434\u043d\u0438\u043c \u0447\u043b\u0435\u043d\u043e\u043c \u043a\u043e\u043c\u0456\u0442\u0435\u0442\u0443 TC39.<\/p>\n\n\n\n<p>2: draft&nbsp;\u2014 \u041f\u043e\u0447\u0430\u0442\u043a\u043e\u0432\u0430 \u0432\u0435\u0440\u0441\u0456\u044f \u0441\u043f\u0435\u0446\u0438\u0444\u0456\u043a\u0430\u0446\u0456\u0457 \u0437&nbsp;\u0434\u0432\u043e\u043c\u0430 \u0435\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u0438\u043c\u0438 \u0440\u0435\u0430\u043b\u0456\u0437\u0430\u0446\u0456\u044f\u043c\u0438.<\/p>\n\n\n\n<p>3: candidate&nbsp;\u2014 \u0421\u043f\u0435\u0446\u0438\u0444\u0456\u043a\u0430\u0446\u0456\u044f \u043f\u0440\u043e\u043f\u043e\u0437\u0438\u0446\u0456\u0457 \u043f\u0435\u0440\u0435\u0433\u043b\u044f\u0434\u0430\u0454\u0442\u044c\u0441\u044f \u0456&nbsp;\u0437\u0431\u0438\u0440\u0430\u044e\u0442\u044c\u0441\u044f \u043a\u043e\u043c\u0435\u043d\u0442\u0430\u0440\u0456 \u0449\u043e&nbsp;\u0434\u043e&nbsp;\u043d\u044c\u043e\u0433\u043e \u0432\u0456\u0434 \u043a\u043e\u043c\u0456\u0442\u0435\u0442\u0443 TC39.<\/p>\n\n\n\n<p>4: finished&nbsp;\u2014 \u041f\u0440\u043e\u043f\u043e\u0437\u0438\u0446\u0456\u044f \u0433\u043e\u0442\u043e\u0432\u0430 \u0434\u043e&nbsp;\u0432\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044f \u0432&nbsp;ECMAScript.<\/p>\n\n\n\n<p>\u041f\u0435\u0440\u0435\u0445\u0456\u0434 \u043d\u0430&nbsp;\u0431\u0443\u043b\u044c-\u044f\u043a\u0443 \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443 \u0441\u0442\u0430\u0434\u0456\u044e \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0454 \u0437\u0433\u043e\u0434\u0438 \u0442\u0435\u0445\u043d\u0456\u0447\u043d\u043e\u0433\u043e \u043a\u043e\u043c\u0456\u0442\u0435\u0442\u0443 TC39. \u042f\u043a\u0449\u043e&nbsp;\u0436 \u043f\u0440\u043e\u043f\u043e\u0437\u0438\u0446\u0456\u044f \u043f\u043e\u0442\u0440\u0430\u043f\u0438\u043b\u0430 \u043d\u0430&nbsp;\u0441\u0442\u0430\u0434\u0456\u044e&nbsp;4, \u043c\u043e\u0436\u043d\u0430 \u043e\u0447\u0456\u043a\u0443\u0432\u0430\u0442\u0438, \u0449\u043e&nbsp;\u0457\u0457&nbsp;\u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0432&nbsp;\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443 \u043e\u0444\u0456\u0446\u0456\u0439\u043d\u0443 \u043e\u043f\u0443\u0431\u043b\u0456\u043a\u043e\u0432\u0430\u043d\u0443 \u0440\u0435\u0434\u0430\u043a\u0446\u0456\u044e \u0441\u043f\u0435\u0446\u0438\u0444\u0456\u043a\u0430\u0446\u0456\u0457 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0443 ECMA-262, \u0456&nbsp;\u0432\u0436\u0435 \u0442\u043e\u0434\u0456 \u0432\u043e\u043d\u0430 \u0437\u2019\u044f\u0432\u0438\u0442\u044c\u0441\u044f \u0432&nbsp;\u043e\u0442\u043e\u0447\u0435\u043d\u043d\u0456, \u0434\u0435&nbsp;\u0432\u0438\u043a\u043e\u043d\u0443\u0454\u0442\u044c\u0441\u044f JavaScript.<br>ES2020.<\/p>\n\n\n\n<p>\u0422\u0430\u043a, \u0449\u043e&nbsp;\u043d\u043e\u0432\u043e\u0433\u043e \u0432&nbsp;\u0447\u0435\u0442\u0432\u0435\u0440\u0442\u0456\u0439, \u0444\u0456\u043d\u0430\u043b\u044c\u043d\u0456\u0439, \u0441\u0442\u0430\u0434\u0456\u0457 \u0432&nbsp;ES2020?<\/p>\n\n\n\n<h3>import.meta<\/h3>\n\n\n\n<p><code>import.meta<\/code>&nbsp;\u2014 \u0446\u0435&nbsp;\u043e\u0431\u2019\u0454\u043a\u0442, \u044f\u043a\u0438\u0439 \u0432\u043a\u0430\u0437\u0443\u0454 \u043c\u0435\u0442\u0430-\u0434\u0430\u043d\u0456 JavaScript \u043c\u043e\u0434\u0443\u043b\u044f \u0432&nbsp;\u0437\u0430\u043b\u0435\u0436\u043d\u043e\u0441\u0442\u0456 \u0432\u0456\u0434 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0443. \u0412\u0456\u043d \u043c\u0456\u0441\u0442\u0438\u0442\u044c \u0456\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0456\u044e \u043f\u0440\u043e \u043c\u043e\u0434\u0443\u043b\u044c. \u041d\u0430\u043f\u0440\u0438\u043a\u043b\u0430\u0434 \u0443&nbsp;\u043d\u0430\u0441 \u0454&nbsp;\u043c\u043e\u0434\u0443\u043b\u044c&nbsp;<code>module.js<\/code><\/p>\n\n\n\n<p><code>&lt;script&nbsp;type=\"module\"&nbsp;src=\"module.js\"&gt;&lt;\/script&gt;<\/code><\/p>\n\n\n\n<p>import.meta \u0434\u0430\u0454 \u043c\u043e\u0436\u043b\u0438\u0432\u0456\u0441\u0442\u044c \u043e\u0442\u0440\u0438\u043c\u0430\u0442\u0438 \u043e\u0431\u2019\u0454\u043a\u0442 \u0437&nbsp;\u043c\u0435\u0442\u0430-\u0456\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0456\u0454\u044e \u043f\u0440\u043e \u0446\u0435\u0439 \u043c\u043e\u0434\u0443\u043b\u044c.<\/p>\n\n\n\n<p><code>console.log(import.meta);&nbsp;\/\/&nbsp;{&nbsp;url:&nbsp;\"file:\/\/\/home\/app\/module.js\"&nbsp;}<\/code><\/p>\n\n\n\n<h3>String.protype.matchAll<\/h3>\n\n\n\n<p>\u041c\u0435\u0442\u043e\u0434&nbsp;<code>String.prototype.matchAll()<\/code>&nbsp;\u043c\u0430\u0454 \u0432\u0456\u0434\u043d\u043e\u0448\u0435\u043d\u043d\u044f \u0434\u043e&nbsp;\u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u0438\u0445 \u0432\u0438\u0440\u0430\u0437\u0456\u0432.<\/p>\n\n\n\n<p>\u0412\u0456\u043d \u043f\u043e\u0432\u0435\u0440\u0442\u0430\u0454 \u0456\u0442\u0435\u0440\u0430\u0442\u043e\u0440, \u044f\u043a\u0438 \u0434\u0430\u0454 \u0437\u043c\u043e\u0433\u0443 \u043f\u0440\u0430\u0446\u044e\u0432\u0430\u0442\u0438 \u0437\u0456&nbsp;\u0432\u0441\u0456\u043c\u0430 \u0441\u043f\u0456\u0432\u043f\u0430\u0434\u0456\u043d\u043d\u044f\u043c\u0438, \u044f\u043a\u0456 \u0431\u0443\u043b\u0438 \u0437\u043d\u0430\u0439\u0434\u0435\u043d\u0456 \u0432&nbsp;\u0441\u0442\u0440\u043e\u0446\u0456 \u0437&nbsp;\u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u043d\u043d\u044f\u043c \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u0438\u0445 \u0432\u0438\u0440\u0430\u0437\u0456\u0432, \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0447\u0438 \u0433\u0440\u0443\u043f\u0438.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">let&nbsp;regexp&nbsp;=&nbsp;\/t(e)(st(\\d?))\/g;\nlet&nbsp;str&nbsp;=&nbsp;'test1test2';\n\nlet&nbsp;array&nbsp;=&nbsp;[...str.matchAll(regexp)];\n\nconsole.log(array[0]);\n\/\/&nbsp;expected&nbsp;output:&nbsp;Array&nbsp;[\"test1\",&nbsp;\"e\",&nbsp;\"st1\",&nbsp;\"1\"]\n\nconsole.log(array[1]);\n\/\/&nbsp;expected&nbsp;output:&nbsp;Array&nbsp;[\"test2\",&nbsp;\"e\",&nbsp;\"st2\",&nbsp;\"2\"]\n<\/pre>\n\n\n\n<h3>\u041c\u0435\u0442\u043e\u0434 Promise.allSettled<\/h3>\n\n\n\n<p>\u041c\u0435\u0442\u043e\u0434 Promise.allSettled \u043f\u043e\u0432\u0435\u0440\u0442\u0430\u0454 \u043f\u0440\u043e\u043c\u0456\u0441 \u0442\u0456\u043b\u044c\u043a\u0438 \u043f\u0456\u0441\u043b\u044f \u0442\u043e\u0433\u043e, \u044f\u043a&nbsp;\u0432\u0441\u0456 \u043d\u0430\u044f\u0432\u043d\u0456 \u043f\u0440\u043e\u043c\u0456\u0441\u0438 \u0431\u0443\u043b\u0438 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0456. \u041c\u0430\u0454\u0442\u044c\u0441\u044f \u043d\u0430&nbsp;\u0443\u0432\u0430\u0437\u0456, \u0449\u043e&nbsp;\u043f\u0440\u043e\u043c\u0456\u0441 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u0439, \u0432\u0456\u043d \u043d\u0435&nbsp;\u0437\u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0432&nbsp;\u043e\u0447\u0456\u043a\u0443\u0432\u0430\u043d\u043d\u0456, \u0442\u043e\u0431\u0442\u043e \u0430\u0431\u043e \u0432\u0438\u043f\u043e\u0432\u043d\u0438\u0432\u0441\u044f, \u0430\u0431\u043e&nbsp;\u0436 \u0432\u0456\u0434\u0445\u0438\u043b\u0435\u043d\u0438\u0439.<\/p>\n\n\n\n<p>\u0414\u043e\u0441\u0438\u0442\u044c \u043f\u043e\u0448\u0438\u0440\u0435\u043d\u0438\u043c \u0454&nbsp;\u0431\u0430\u0436\u0430\u043d\u043d\u044f \u0437\u043d\u0430\u0442\u0438, \u0449\u043e&nbsp;\u0432\u0441\u0456 \u0437\u0430\u043f\u0438\u0442\u0438 \u0432\u0456\u0434\u0431\u0443\u043b\u0438\u0441\u044c, \u043d\u0435&nbsp;\u0432&nbsp;\u0437\u0430\u043b\u0435\u0436\u043d\u043e\u0441\u0442\u0456 \u0432\u0456\u0434 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0443. \u0426\u0435&nbsp;\u0432\u0430\u0436\u043b\u0438\u0432\u043e, \u043a\u043e\u043b\u0438 \u0445\u043e\u0447\u0435\u0442\u044c\u0441\u044f \u0432&nbsp;\u043c\u0430\u0439\u0431\u0443\u0442\u043d\u044c\u043e\u043c\u0443 \u0437\u0430\u0439\u043d\u044f\u0442\u0438\u0441\u044c \u043f\u043e\u0441\u0442\u0443\u043f\u043e\u0432\u0438\u043c \u043f\u043e\u043a\u0440\u0430\u0449\u0435\u043d\u043d\u044f\u043c.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>const<\/strong>&nbsp;promise1&nbsp;=&nbsp;Promise.resolve(3);\n<strong>const<\/strong>&nbsp;promise2&nbsp;=&nbsp;<strong>new<\/strong>&nbsp;Promise((resolve,&nbsp;reject)&nbsp;=&gt;&nbsp;setTimeout(reject,&nbsp;100,&nbsp;'foo'));\n<strong>const<\/strong>&nbsp;promises&nbsp;=&nbsp;[promise1,&nbsp;promise2];\n\nPromise.allSettled(promises).\n&nbsp;&nbsp;then((results)&nbsp;=&gt;&nbsp;results.forEach((result)&nbsp;=&gt;&nbsp;console.log(result.status)));\n\n\/\/&nbsp;expected&nbsp;output:\n\/\/&nbsp;\"fulfilled\"\n\/\/&nbsp;\"rejected\"\n<\/pre>\n\n\n\n<h3>BigInt<\/h3>\n\n\n\n<p>BigInt, \u0434\u043e\u0441\u0438\u0442\u044c \u043e\u0447\u0456\u043a\u0443\u0432\u0430\u043d\u0435 \u043e\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044f JavaScript \u0442\u0430\u043a \u044f\u043a&nbsp;\u0446\u0435&nbsp;\u0441\u044c\u043e\u043c\u0438\u0439 \u043f\u0440\u0438\u043c\u0456\u0442\u0438\u0432\u043d\u0438\u0439 \u0442\u0438\u043f, \u0446\u0456\u043b\u0435 \u0447\u0438\u0441\u043b\u043e \u0434\u043e\u0432\u0456\u043b\u044c\u043d\u043e\u0457 \u0434\u043e\u0432\u0436\u0438\u043d\u0438. \u0422\u0435\u043f\u0435\u0440\u044c \u0437\u043c\u0456\u043d\u043d\u0456 \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0442\u0438\u043f\u0443 \u043c\u043e\u0436\u0443\u0442\u044c \u0431\u0443\u0442\u0438 \u0456\u0437&nbsp;253 \u0447\u0438\u0441\u043b\u043e\u0432\u0438\u0445 \u0437\u043d\u0430\u043a\u0456\u0432, \u043d\u0435&nbsp;\u043e\u0431\u043c\u0435\u0436\u0435\u043d\u0456 \u0447\u0438\u0441\u043b\u043e\u0432\u0438\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f\u043c 9007199254740992.<\/p>\n\n\n\n<p>\u0429\u043e&nbsp;\u043f\u0440\u0430\u0432\u0434\u0430, \u0442\u0430\u043a\u0438\u0439 \u0442\u0438\u043f \u0434\u0430\u043d\u0438\u0445 \u043d\u0435&nbsp;\u0454&nbsp;\u043e\u0431\u0435\u0440\u043d\u0435\u043d\u043e \u0441\u0443\u043c\u0456\u0441\u043d\u0438\u0439 \u0437&nbsp;\u0442\u0438\u043c, \u0449\u043e&nbsp;\u0431\u0443\u043b\u043e \u0432&nbsp;\u043c\u043e\u0432\u0456 \u0440\u0430\u043d\u0456\u0448\u0435. \u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442 IEEE 754, \u043d\u0430&nbsp;\u043e\u0441\u043d\u043e\u0432\u0456 \u044f\u043a\u043e\u0433\u043e \u0431\u0443\u043b\u0430 \u0440\u043e\u0431\u043e\u0442\u0430 \u0437&nbsp;\u0447\u0438\u0441\u043b\u0430\u043c\u0438 \u0432&nbsp;JavaScript, \u043d\u0435&nbsp;\u043f\u0456\u0434\u0442\u0440\u0438\u043c\u0443\u0454 \u0442\u0430\u043a\u0456 \u0447\u0438\u0441\u043b\u0430, \u0440\u043e\u0431\u043e\u0442\u0430 \u0437&nbsp;\u044f\u043a\u0438\u043c\u0438 \u043c\u043e\u0436\u043b\u0438\u0432\u0430 \u0434\u044f\u043a\u0443\u044e\u0447\u0438 BigInt.<\/p>\n\n\n\n<p>\u041d\u0430\u0439\u0431\u0456\u043b\u044c\u0448\u0435 \u0431\u0435\u0437\u043f\u0435\u0447\u043d\u0435 \u0446\u0456\u043b\u0435 \u0447\u0438\u0441\u043b\u043e\u0432\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0443&nbsp;JavaScript \u0446\u0435&nbsp;2^53.\u0426\u0435 \u0447\u0438\u0441\u043b\u043e \u043c\u043e\u0436\u043d\u0430 \u043e\u0442\u0440\u0438\u043c\u0430\u0442\u0438 \u0437\u0430&nbsp;\u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e&nbsp;<code>MAX_SAFE_INTEGER<\/code>.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>const<\/strong>&nbsp;maxNumber&nbsp;=&nbsp;Number.MAX_SAFE_INTEGER;\n\nconsole.log(maxNumber);&nbsp;\/\/&nbsp;9007199254740991\n<\/pre>\n\n\n\n<p>\u0410&nbsp;\u043e\u0441\u044c \u0442\u0430\u043a\u0438\u0439 \u043f\u0440\u0438\u043a\u043b\u0430\u0434 \u0433\u0435\u0442\u044c \u043d\u0435\u043f\u0435\u0440\u0435\u0434\u0431\u0430\u0447\u0443\u0432\u0430\u043d\u0438\u0439:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">console.log(maxNumber&nbsp;+&nbsp;1);&nbsp;\/\/&nbsp;9007199254740992\nconsole.log(maxNumber&nbsp;+&nbsp;2);&nbsp;\/\/&nbsp;9007199254740992\nconsole.log(maxNumber&nbsp;+&nbsp;3);&nbsp;\/\/&nbsp;9007199254740994\n<\/pre>\n\n\n\n<p>\u0422\u0435\u043f\u0435\u0440 \u043c\u0438&nbsp;\u043c\u043e\u0436\u0435\u043c\u043e \u0446\u0435&nbsp;\u043e\u0431\u0456\u0439\u0442\u0438 \u0437&nbsp;\u043d\u043e\u0432\u0438\u043c \u0442\u0438\u043f\u043e\u043c BigInt.<\/p>\n\n\n\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u044e\u0447\u0438 \u043b\u0456\u0442\u0435\u0440\u0443 \u2019n\u2019 \u0432&nbsp;\u043a\u0456\u043d\u0435\u0446\u044c \u0447\u0438\u0441\u043b\u0430, \u043c\u0438&nbsp;\u043c\u043e\u0436\u0435\u043c\u043e \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0456&nbsp;\u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442\u0438 \u0456\u0442\u0435\u0440\u0430\u0446\u0456\u044e \u0437&nbsp;\u0448\u0430\u043b\u0435\u043d\u043e \u0432\u0435\u043b\u0438\u043a\u0438\u043c\u0438 \u0447\u0438\u0441\u043b\u0430\u043c\u0438.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>const<\/strong>&nbsp;bigNumber&nbsp;=&nbsp;100000000000000000000000000000n;\n\nconsole.log(bigNumber&nbsp;*&nbsp;5n);&nbsp;\/\/&nbsp;500000000000000000000000000000n\n<\/pre>\n\n\n\n<h3>Dynamic import<\/h3>\n\n\n\n<p>\u0414\u0438\u043d\u0430\u043c\u0456\u0447\u043d\u0456 \u0456\u043c\u043f\u043e\u0440\u0442\u0438 \u0432&nbsp;JavaScript \u0434\u0430\u044e\u0442\u044c \u043c\u043e\u0436\u043b\u0438\u0432\u0456\u0441\u0442\u044c \u0456\u043c\u043f\u043e\u0440\u0442\u0443\u0432\u0430\u0442\u0438&nbsp;JS \u0444\u0430\u0439\u043b\u0438 \u0434\u0438\u043d\u0430\u043c\u0456\u0447\u043d\u043e, \u044f\u043a&nbsp;\u043c\u043e\u0434\u0443\u043b\u0456: \u043d\u0430\u0442\u0438\u0432\u043d\u043e, \u0443&nbsp;\u0432\u0430\u0448\u0443 \u0430\u043f\u043b\u0456\u043a\u0430\u0446\u0456\u044e.<\/p>\n\n\n\n<p>\u0426\u0435&nbsp;\u0449\u043e\u0441\u044c \u0441\u0445\u043e\u0436\u0435 \u044f\u043a&nbsp;\u043c\u0438&nbsp;\u0446\u0435&nbsp;\u0440\u043e\u0431\u0438\u043c\u043e \u0437\u0430&nbsp;\u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e Webpack \u0442\u0430&nbsp;Babel. \u0412\u0435\u043b\u0438\u043a\u0438\u0439 \u043f\u043b\u044e\u0441 \u0443&nbsp;\u0446\u044c\u043e\u043c\u0443, \u0449\u043e&nbsp;\u0456\u043c\u043f\u043e\u0440\u0442\u0443\u0432\u0430\u043d\u043d\u044f \u043c\u043e\u0434\u0443\u043b\u0456\u0432, \u043d\u0435&nbsp;\u0437\u0430\u0441\u043c\u0456\u0447\u0443\u0454 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u0438\u0439 \u043f\u0440\u043e\u0441\u0442\u0456\u0440.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>if<\/strong>(newContition)&nbsp;{\n<strong>const<\/strong>&nbsp;module&nbsp;=&nbsp;<strong>await<\/strong>&nbsp;<strong>import<\/strong>('.\/mydynamicmodule.js');\nmodule.addNumbers(3,&nbsp;2,&nbsp;74);\n}\n<\/pre>\n\n\n\n<h3>Optional Chaining (\u043e\u043f\u0446\u0456\u043e\u043d\u0430\u043b\u044c\u043d\u0438\u0439 \u043b\u0430\u043d\u0446\u044e\u0436\u043e\u043a)<\/h3>\n\n\n\n<p>\u041e\u043f\u0446\u0456\u043e\u043d\u0430\u043b\u044c\u043d\u0456 \u043b\u0430\u043d\u0446\u044e\u0436\u043a\u0438, \u043d\u0430&nbsp;\u043c\u043e\u044e \u0434\u0443\u043c\u043a\u0443, \u043e\u0434\u043d\u0430 \u0437&nbsp;\u0441\u0430\u043c\u0438\u0445 \u0447\u0443\u0434\u043e\u0432\u0438\u0445 \u043c\u043e\u0436\u043b\u0438\u0432\u043e\u0441\u0442\u0435\u0439 \u044f\u043a&nbsp;\u0434\u0430\u0454 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442 ES2020.<\/p>\n\n\n\n<p>\u0412\u043e\u043d\u0438 \u0434\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442\u044c \u043e\u0440\u0433\u0430\u043d\u0456\u0437\u0443\u0432\u0430\u0442\u0438 \u0431\u0435\u0437\u043f\u0435\u0447\u043d\u0438\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u0434\u043e&nbsp;\u0433\u043b\u0438\u0431\u043e\u043a\u043e \u0432\u043a\u043b\u0430\u0434\u0435\u043d\u0438\u0445 \u0432\u043b\u0430\u0441\u0442\u0438\u0432\u043e\u0441\u0442\u0435\u0439 \u043e\u0431\u2019\u0454\u043a\u0442\u0456\u0432 \u0431\u0435\u0437 \u043d\u0435\u043e\u0431\u0445\u0456\u0434\u043d\u043e\u0441\u0442\u0456 \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u043a\u0438 \u0456\u0441\u043d\u0443\u0432\u0430\u043d\u043d\u044f \u043a\u043e\u0436\u043d\u043e\u0433\u043e \u0437&nbsp;\u043d\u0438\u0445.<\/p>\n\n\n\n<p>\u042f\u043a\u0449\u043e&nbsp;\u0436 \u0432\u043b\u0430\u0441\u0442\u0438\u0432\u0456\u0441\u0442\u044c \u044f\u043a\u0443 \u043c\u0438&nbsp;\u043f\u0435\u0440\u0435\u0432\u0456\u0440\u044f\u0454\u043c\u043e \u043d\u0435&nbsp;\u0456\u0441\u043d\u0443\u0454&nbsp;\u2014 \u043d\u0430\u043c \u0432\u0435\u0440\u043d\u0435\u0442\u044c\u0441\u044f&nbsp;<code>undefined<\/code>.<\/p>\n\n\n\n<p><code>let&nbsp;nestedProp&nbsp;=&nbsp;obj.first?.second;<\/code><\/p>\n\n\n\n<p>\u041f\u0440\u0438 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u043d\u043d\u0456 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430&nbsp;<code>?.<\/code>&nbsp;JavaScript \u0432\u0438\u043a\u043e\u043d\u0443\u0454 \u043d\u0435\u044f\u0432\u043d\u0443 \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u043a\u0443, \u0449\u043e\u0431 \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u0438\u0442\u0438, \u0447\u0438&nbsp;<code>obj.first<\/code>&nbsp;\u043d\u0435 \u0434\u043e\u0440\u0456\u0432\u043d\u044e\u0454 undefined \u0447\u0438&nbsp;null, \u043f\u0435\u0440\u0435\u0434 \u0442\u0438\u043c, \u044f\u043a&nbsp;\u0437\u0432\u0435\u0440\u0442\u0430\u0442\u0438\u0441\u044c \u0434\u043e&nbsp;<code>obj.first.second<\/code>. \u042f\u043a\u0449\u043e obj.first \u0434\u043e\u0440\u0456\u0432\u043d\u044e\u0454 null \u0447\u0438&nbsp;undefined, \u0432\u0438\u0440\u0430\u0437 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u043d\u043e \u0432\u0438\u043a\u043e\u043d\u0443\u0454 \u043a\u043e\u0440\u043e\u0442\u043a\u0435 \u0437\u0430\u043c\u0438\u043a\u0430\u043d\u043d\u044f, \u043f\u043e\u0432\u0435\u0440\u0442\u0430\u044e\u0447\u0438 undefined. \u0406&nbsp;\u043d\u0430&nbsp;\u0442\u0430\u043a\u043e\u043c\u0443 \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u0456, \u043c\u043e\u0436\u043d\u0430 \u043f\u043e\u0431\u0430\u0447\u0438\u0442\u0438, \u0449\u043e&nbsp;\u0446\u0435&nbsp;\u0447\u0443\u0434\u043e\u0432\u0430 \u0437\u0430\u043c\u0456\u043d\u0430 \u0442\u0435\u0440\u043d\u0430\u0440\u043d\u043e\u0433\u043e \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430.<\/p>\n\n\n\n<p><code>let&nbsp;nestedProp&nbsp;=&nbsp;((obj.first&nbsp;==&nbsp;null&nbsp;||&nbsp;obj.first&nbsp;==&nbsp;undefined)&nbsp;?&nbsp;undefined&nbsp;:&nbsp;obj.first.second);<\/code><\/p>\n\n\n\n<p>\u041e\u043f\u0446\u0456\u043e\u043d\u0430\u043b\u044c\u043d\u0456 \u043b\u0430\u043d\u0446\u044e\u0436\u043a\u0438 \u043f\u0440\u0430\u0446\u044e\u044e\u0442\u044c \u043d\u0435&nbsp;\u043b\u0438\u0448\u0435 \u0437\u0456&nbsp;\u0432\u043b\u0430\u0441\u0442\u0438\u0432\u043e\u0441\u0442\u044f\u043c\u0438 \u043e\u0431\u2019\u0454\u043a\u0442\u0430, \u0430&nbsp;\u0439&nbsp;\u0437&nbsp;\u0444\u0443\u043d\u043a\u0446\u0456\u044f\u043c\u0438 \u0442\u0430&nbsp;\u043c\u0430\u0441\u0438\u0432\u0430\u043c\u0438. \u0410&nbsp;\u0449\u0435&nbsp;\u0434\u043e\u0431\u0440\u0435 \u043f\u0440\u0430\u0446\u044e\u0432\u0430\u0442\u0438 \u0437&nbsp;<code>querySelector<\/code><\/p>\n\n\n\n<p>\u041e\u0441\u044c \u044f\u043a&nbsp;\u043d\u0430&nbsp;\u0446\u044c\u043e\u043c\u0443 \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u0456:<\/p>\n\n\n\n<p><code>let&nbsp;myId&nbsp;=&nbsp;document&nbsp;.querySelector('#id')&nbsp;?.innerText&nbsp;?.replaceAll('foo',&nbsp;'bar')<\/code><\/p>\n\n\n\n<p>\u0422\u0430\u043a, \u0434\u0443\u0436\u0435 \u0437\u0440\u0443\u0447\u043d\u0430 \u0440\u0456\u0447!<\/p>\n\n\n\n<h3>\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 Nullish Coalescing<\/h3>\n\n\n\n<p>\u0426\u0435\u0439 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u0432\u0436\u0435 \u0434\u0430\u0432\u043d\u043e \u0454&nbsp;\u0432&nbsp;\u0456\u043d\u0448\u0438\u0445 \u043c\u043e\u0432\u0430\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u0443\u0432\u0430\u043d\u043d\u044f, \u0430\u043b\u0435 \u0442\u0435\u043f\u0435\u0440 \u0432\u0456\u043d \u043d\u0430\u0440\u0435\u0448\u0442\u0456 \u0437\u2019\u044f\u0432\u0438\u0432\u0441\u044f \u0456&nbsp;\u0432&nbsp;JavaScript.<\/p>\n\n\n\n<p>Nullish coalescing \u0434\u0430\u0454 \u043c\u043e\u0436\u043b\u0438\u0432\u0456\u0441\u0442\u044c \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u0438\u0442\u0438 null-\u043f\u043e\u0434\u0456\u0431\u043d\u0456 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0437\u0430\u043c\u0456\u0441\u0442\u044c \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u043a\u0438 false-\u0437\u043d\u0430\u0447\u0435\u043d\u044c.<\/p>\n\n\n\n<p>\u0410\u043b\u0435 \u0442\u0443\u0442 \u043c\u043e\u0436\u0435 \u0432\u0438\u043d\u0438\u043a\u043d\u0443\u0442\u0438 \u043f\u0438\u0442\u0430\u043d\u043d\u044f, \u0432&nbsp;\u0447\u043e\u043c\u0443&nbsp;\u0436 \u0440\u0456\u0437\u043d\u0438\u0446\u044f \u043c\u0456\u0436 null- \u0438&nbsp;false-\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f\u043c\u0438?<\/p>\n\n\n\n<p>\u0412&nbsp;JavaScript \u0431\u0430\u0433\u0430\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u044c \u0454&nbsp;false-\u043f\u043e\u0434\u043e\u0431\u043d\u0456: \u0446\u0435&nbsp;\u043c\u043e\u0436\u0435 \u0431\u0443\u0442\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f 0&nbsp;\u0432 number, null, false, NaN, \u0430\u0431\u043e&nbsp;\u0436 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0443\u0441\u0442\u0438\u0439 \u0440\u044f\u0434\u043e\u043a.<\/p>\n\n\n\n<p>\u0410\u043b\u0435 \u0443&nbsp;\u0431\u0430\u0433\u0430\u0442\u044c\u043e\u0445 \u0432\u0438\u043f\u0430\u0434\u043a\u0430\u0445 \u043f\u043e\u0432\u0438\u043d\u043d\u0430 \u0431\u0443\u0442\u0438 \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u043a\u0430 \u043d\u0430&nbsp;\u0442\u0435, \u0449\u043e&nbsp;\u0432\u0438\u0440\u0430\u0437 \u0440\u0456\u0432\u043d\u0438\u0439 \u043b\u0438\u0448\u0435 null \u0430\u0431\u043e undefined.<\/p>\n\n\n\n<p>\u041d\u0430\u043f\u0440\u0438\u043a\u043b\u0430\u0434, \u043a\u043e\u043b\u0438 \u0434\u043e\u043f\u0443\u0441\u043a\u0430\u0454\u0442\u044c\u0441\u044f, \u0449\u043e&nbsp;\u0437\u043c\u0456\u043d\u043d\u0430 \u043c\u043e\u0436\u0435 \u0431\u0443\u0442\u0438 \u043f\u0443\u0441\u0442\u0438\u043c \u0440\u044f\u0434\u043a\u043e\u043c, \u0447\u0438\u0441\u043b\u043e\u043c 0&nbsp;\u0430\u0431\u043e&nbsp;\u0436 false.<\/p>\n\n\n\n<p>\u0406&nbsp;\u0442\u0443\u0442 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 nullish coalescing \u0441\u043f\u0456\u0448\u0438\u0442\u044c \u043d\u0430&nbsp;\u0434\u043e\u043f\u043e\u043c\u043e\u0433\u0443!<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>const<\/strong>&nbsp;foo&nbsp;=&nbsp;null&nbsp;??&nbsp;'default&nbsp;string';\nconsole.log(foo);\n\/\/&nbsp;expected&nbsp;output:&nbsp;\"default&nbsp;string\"\n\n<strong>const<\/strong>&nbsp;baz&nbsp;=&nbsp;0&nbsp;??&nbsp;42;\nconsole.log(baz);\n\/\/&nbsp;expected&nbsp;output:&nbsp;0\n<\/pre>\n\n\n\n<h3>\u0413\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u0430 \u0432\u043b\u0430\u0441\u0442\u0438\u0432\u0456\u0441\u0442\u044c globalThis<\/h3>\n\n\n\n<p>\u0413\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u0430 \u0432\u043b\u0430\u0441\u0442\u0438\u0432\u0456\u0441\u0442\u044c globalThis \u0437\u0431\u0435\u0440\u0456\u0433\u0430\u0454 \u043f\u043e\u0441\u0438\u043b\u0430\u043d\u043d\u044f \u043d\u0430&nbsp;\u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u0438\u0439 \u043e\u0431\u2019\u0454\u043a\u0442, \u044f\u043a\u0438\u0439 \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u0430\u0454 \u043e\u0442\u043e\u0447\u0435\u043d\u043d\u044e, \u0432&nbsp;\u044f\u043a\u043e\u043c\u0443 \u0441\u043f\u0440\u0430\u0446\u044c\u043e\u0432\u0443\u0454 \u043a\u043e\u0434.<\/p>\n\n\n\n<p>\u0412&nbsp;\u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0456 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u0438\u0439 \u043e\u0431\u2019\u0454\u043a\u0442 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0439 \u043e\u0431\u2019\u0454\u043a\u0442\u043e\u043c window.<\/p>\n\n\n\n<p>\u0412&nbsp;Node.js&nbsp;\u2014 \u0446\u0435&nbsp;\u043e\u0431\u2019\u0454\u043a\u0442 global.<\/p>\n\n\n\n<p>\u0412&nbsp;\u0432\u0435\u0431-\u0432\u043e\u0440\u043a\u0435\u0440\u0430\u0445&nbsp;\u2014 self.<\/p>\n\n\n\n<p>\u0414\u043e&nbsp;<code>globalThis<\/code>, \u0454\u0434\u0438\u043d\u0438\u043c \u043d\u0430\u0434\u0456\u0439\u043d\u0438\u043c \u0432\u0430\u0440\u0456\u0430\u043d\u0442\u043e\u043c \u043e\u0442\u0440\u0438\u043c\u0430\u0442\u0438 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u0438\u0439 \u043e\u0431\u2019\u0454\u043a\u0442 \u0431\u0443\u0432&nbsp;<code>Function('return&nbsp;this')()<\/code>.<\/p>\n\n\n\n<p>\u0410\u043b\u0435, \u0446\u0435&nbsp;\u0431\u0443\u043b\u0430 \u043f\u0440\u0438\u0447\u0438\u043d\u0430 CSP \u043f\u043e\u0440\u0443\u0448\u0435\u043d\u044c \u0432&nbsp;\u043f\u0435\u0432\u043d\u0438\u0445 \u043d\u0430\u043b\u0430\u0448\u0442\u0443\u0432\u0430\u043d\u043d\u044f\u0445, \u0442\u043e\u043c\u0443 es6-shim \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0454 \u0434\u043e\u0434\u0430\u0442\u043a\u043e\u0432\u0443 \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u043a\u0443, \u044f\u043a&nbsp;\u043d\u0430&nbsp;\u0442\u0430\u043a\u043e\u043c\u0443 \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u0456:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>var<\/strong>&nbsp;getGlobal&nbsp;=&nbsp;<strong>function<\/strong>&nbsp;()&nbsp;{&nbsp;\n<strong>if<\/strong>&nbsp;(<strong>typeof<\/strong>&nbsp;self&nbsp;!==&nbsp;'undefined')&nbsp;{&nbsp;<strong>return<\/strong>&nbsp;self;&nbsp;}&nbsp;\n<strong>if<\/strong>&nbsp;(<strong>typeof<\/strong>&nbsp;window&nbsp;!==&nbsp;'undefined')&nbsp;{&nbsp;<strong>return<\/strong>&nbsp;window;&nbsp;}&nbsp;\n<strong>if<\/strong>&nbsp;(<strong>typeof<\/strong>&nbsp;global&nbsp;!==&nbsp;'undefined')&nbsp;{&nbsp;<strong>return<\/strong>&nbsp;global;&nbsp;}&nbsp;\n<strong>throw<\/strong>&nbsp;<strong>new<\/strong>&nbsp;Error('unable&nbsp;to&nbsp;locate&nbsp;global&nbsp;object');&nbsp;};&nbsp;\n<strong>var<\/strong>&nbsp;globals&nbsp;=&nbsp;getGlobal();&nbsp;\n<strong>if<\/strong>&nbsp;(<strong>typeof<\/strong>&nbsp;globals.setTimeout&nbsp;!==&nbsp;'function')&nbsp;{&nbsp;\n\/\/&nbsp;\u043d\u0435\u043c\u0430&nbsp;setTimeout&nbsp;\u0432&nbsp;\u0434\u0430\u043d\u043e\u043c\u0443&nbsp;\u043e\u0442\u043e\u0447\u0435\u043d\u043d\u0456!&nbsp;}\n<\/pre>\n\n\n\n<p>\u0417\u0430&nbsp;\u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e globalThis, \u0446\u0435&nbsp;\u0432\u0436\u0435 \u043d\u0435&nbsp;\u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u0431\u0456\u043b\u044c\u0448\u0435<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>if<\/strong>&nbsp;(<strong>typeof<\/strong>&nbsp;globalThis.setTimeout&nbsp;!==&nbsp;'function')&nbsp;{&nbsp;\n\/\/&nbsp;\u043d\u0435\u043c\u0430&nbsp;setTimeout&nbsp;\u0432&nbsp;\u0434\u0430\u043d\u043e\u043c\u0443&nbsp;\u043e\u0442\u043e\u0447\u0435\u043d\u043d\u0456!&nbsp;}\n<\/pre>\n\n\n\n<h3>For-in Mechanics<\/h3>\n\n\n\n<p>ECMA-262 \u0437\u0430\u043b\u0438\u0448\u0430\u0454 \u043f\u043e\u0440\u044f\u0434\u043e\u043a for (a&nbsp;in&nbsp;b) \u043c\u0430\u0439\u0436\u0435 \u043f\u043e\u0432\u043d\u0456\u0441\u0442\u044e \u043d\u0435&nbsp;\u0432\u0438\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u043c, \u0430\u043b\u0435 \u0432&nbsp;\u0434\u0456\u0439\u0441\u043d\u043e\u0441\u0442\u0456, \u0440\u0443\u0448\u0456\u0457 \u043c\u0430\u044e\u0442\u044c \u0442\u0435\u043d\u0434\u0435\u043d\u0446\u0456\u044e \u0431\u0443\u0442\u0438 \u043f\u043e\u0441\u043b\u0456\u0434\u043e\u0432\u043d\u0438\u043c\u0438, \u043f\u0440\u0438\u043d\u0430\u0439\u043c\u043d\u0456 \u0432&nbsp;\u0434\u0435\u044f\u043a\u0438\u0445 \u0432\u0438\u043f\u0430\u0434\u043a\u0430\u0445.<\/p>\n\n\n\n<p>\u0422\u0430\u043a \u0456\u0441\u0442\u043e\u0440\u0438\u0447\u043d\u043e \u0432\u0438\u0445\u043e\u0434\u0438\u043b\u043e, \u0449\u043e&nbsp;\u043d\u0435\u043e\u0434\u043d\u043e\u0440\u0430\u0437\u043e\u0432\u043e \u043f\u0440\u043e\u0432\u0430\u043b\u044e\u0432\u0430\u043b\u0438\u0441\u044c \u043e\u0431\u0433\u043e\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u0449\u043e\u0434\u043e \u043f\u043e\u0432\u043d\u043e\u0457 \u0441\u043f\u0435\u0446\u0438\u0444\u0456\u043a\u0430\u0446\u0456\u0457 \u043f\u043e\u0440\u044f\u0434\u043a\u0443 for-in. \u0427\u0430\u0441\u0442\u043a\u043e\u0432\u043e \u0446\u0435&nbsp;\u043f\u043e\u044f\u0441\u043d\u044e\u0432\u0430\u043b\u043e\u0441\u044c \u0442\u0438\u043c, \u0449\u043e&nbsp;\u0432\u0441\u0456 \u0440\u0443\u0448\u0456\u0457 \u043c\u0430\u044e\u0442\u044c \u0432\u043b\u0430\u0441\u043d\u0456 \u0441\u0432\u043e\u0454\u0440\u0456\u0434\u043d\u0456 \u0440\u0435\u0430\u043b\u0456\u0437\u0430\u0446\u0456\u0457 \u0456&nbsp;\u0446\u0435&nbsp;\u0441\u0442\u0432\u043e\u0440\u044e\u0432\u0430\u043b\u043e \u0442\u0440\u0443\u0434\u043d\u043e\u0449\u0456.<\/p>\n\n\n\n<p>\u0412&nbsp;\u043a\u0456\u043d\u0446\u0456, \u0431\u0443\u043b\u043e \u043f\u043e\u0433\u043e\u0434\u0436\u0435\u043d\u043e&nbsp;\u0442\u0435, \u044f\u043a&nbsp;\u0456\u0442\u0435\u0440\u0438\u0440\u0443\u044e\u0442\u044c\u0441\u044f \u0432\u043b\u0430\u0441\u0442\u0438\u0432\u043e\u0441\u0442\u0456 \u043f\u0440\u0438 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u043d\u043d\u0456 for (a&nbsp;in&nbsp;b), \u0449\u043e\u0431 \u043f\u043e\u0432\u0435\u0434\u0456\u043d\u043a\u0430 \u0431\u0443\u043b\u0430 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0438\u0437\u043e\u0432\u0430\u043d\u043e\u044e.<\/p>\n\n\n\n<p>\u0414\u043e\u043a\u043b\u0430\u0434\u043d\u0456\u0448\u0435 \u043c\u043e\u0436\u043d\u0430 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u0438&nbsp;<a href=\"https:\/\/github.com\/tc39\/proposal-for-in-order\" target=\"_blank\" rel=\"noreferrer noopener\">\u043d\u0430&nbsp;\u043e\u0444\u0456\u0446\u0456\u0439\u043d\u043e\u043c\u0443 \u0433\u0456\u0442\u0445\u0430\u0431\u0456 \u043a\u043e\u043c\u0456\u0442\u0435\u0442\u0443<\/a>.<\/p>\n\n\n\n<h3>ES2021: \u0429\u043e&nbsp;\u043d\u0430\u0441 \u0447\u0435\u043a\u0430\u0454 \u0432&nbsp;\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u043c\u0443 \u0440\u043e\u0446\u0456<\/h3>\n\n\n\n<p><code>String.prototype.replaceAll<\/code><\/p>\n\n\n\n<p>\u041d\u0430&nbsp;\u0447\u0430\u0441 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044f \u0441\u0442\u0430\u0442\u0442\u0456, \u0446\u0435&nbsp;\u0431\u0443\u043b\u043e \u0454\u0434\u0438\u043d\u0435 \u043e\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044f, \u044f\u043a\u0435 \u0454&nbsp;\u0432\u0436\u0435 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0435 \u0432&nbsp;\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443 \u0441\u043f\u0435\u0446\u0438\u0444\u0456\u043a\u0430\u0446\u0456\u044e ES2021. \u041c\u0435\u0442\u043e\u0434&nbsp;<code>replaceAll()<\/code>&nbsp;\u043f\u043e\u0432\u0435\u0440\u0442\u0430\u0454 \u043d\u043e\u0432\u0438\u0439 \u0440\u044f\u0434\u043e\u043a, \u0432&nbsp;\u044f\u043a\u043e\u043c\u0443 \u0443\u0441\u0456 \u0437\u0431\u0456\u0433\u0438 \u0437&nbsp;\u0448\u0430\u0431\u043b\u043e\u043d\u043e\u043c \u0437\u043c\u0456\u043d\u0435\u043d\u0456 \u0432\u043a\u0430\u0437\u0430\u043d\u0438\u043c \u0432\u0430\u043c\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 \u0437\u0430\u043c\u0456\u043d\u0438. \u0422\u0430\u043a\u0438\u0439 \u0448\u0430\u0431\u043b\u043e\u043d \u043c\u043e\u0436\u0435 \u0431\u0443\u0442\u0438 \u0430\u0431\u043e \u0440\u044f\u0434\u043a\u043e\u043c \u0430\u0431\u043e&nbsp;\u0436 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u0438\u043c \u0432\u0438\u0440\u0430\u0437\u043e\u043c, \u0430&nbsp;\u0437\u0430\u043c\u0456\u043d\u0430 \u043c\u043e\u0436\u0435 \u0431\u0443\u0442\u0438 \u044f\u043a&nbsp;\u0440\u044f\u0434\u043a\u043e\u043c \u044f\u043a&nbsp;\u0456&nbsp;\u0444\u0443\u043d\u043a\u0446\u0456\u0454\u044e, \u0449\u043e&nbsp;\u0432\u0438\u043a\u043b\u0438\u043a\u0430\u0454\u0442\u044c\u0441\u044f \u0434\u043b\u044f \u043a\u043e\u0436\u043d\u043e\u0433\u043e \u0442\u0430\u043a\u043e\u0433\u043e \u0437\u0431\u0456\u0433\u0443.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>const<\/strong>&nbsp;p&nbsp;=&nbsp;'The&nbsp;quick&nbsp;brown&nbsp;fox&nbsp;jumps&nbsp;over&nbsp;the&nbsp;lazy&nbsp;dog.&nbsp;If&nbsp;the&nbsp;dog&nbsp;reacted,&nbsp;was&nbsp;it&nbsp;really&nbsp;lazy?';\n<strong>const<\/strong>&nbsp;regex&nbsp;=&nbsp;\/dog\/gi;\n\nconsole.log(p.replaceAll(regex,&nbsp;'ferret'));\n\/\/&nbsp;expected&nbsp;output:&nbsp;\"The&nbsp;quick&nbsp;brown&nbsp;fox&nbsp;jumps&nbsp;over&nbsp;the&nbsp;lazy&nbsp;ferret.&nbsp;If&nbsp;the&nbsp;ferret&nbsp;reacted,&nbsp;was&nbsp;it&nbsp;really&nbsp;lazy?\"\n\nconsole.log(p.replaceAll('dog',&nbsp;'monkey'));\n\/\/&nbsp;expected&nbsp;output:&nbsp;\"The&nbsp;quick&nbsp;brown&nbsp;fox&nbsp;jumps&nbsp;over&nbsp;the&nbsp;lazy&nbsp;monkey.&nbsp;If&nbsp;the&nbsp;monkey&nbsp;reacted,&nbsp;was&nbsp;it&nbsp;really&nbsp;lazy?\"\n&nbsp;<\/pre>\n\n\n\n<h3>\u0429\u043e&nbsp;\u043d\u0430\u0441 \u0447\u0435\u043a\u0430\u0454 \u0434\u0430\u043b\u0456<\/h3>\n\n\n\n<p>\u042f\u043a&nbsp;\u043c\u0438&nbsp;\u0437\u043d\u0430\u0454\u043c\u043e \u0441\u0442\u0430\u0434\u0456\u044f&nbsp;3, \u043c\u0430\u0454 \u0443&nbsp;\u0441\u043e\u0431\u0456 \u0441\u043f\u0438\u0441\u043e\u043a \u043a\u0430\u043d\u0434\u0438\u0434\u0430\u0442\u0456\u0432 \u044f\u043a\u0456, \u0432\u0436\u0435 \u0437\u043e\u0432\u0441\u0456\u043c \u0441\u043a\u043e\u0440\u043e \u043c\u0430\u044e\u0442\u044c \u0442\u0430\u043a\u043e\u0436 \u0443\u0432\u0456\u0439\u0442\u0438 \u0434\u043e&nbsp;\u043c\u0430\u0439\u0431\u0443\u0442\u043d\u0456\u0445 \u0440\u0435\u043b\u0456\u0437\u0456\u0432 ECMAScript. \u0414\u0435\u044f\u043a\u0456 \u0437&nbsp;\u043d\u0438\u0445 \u0432\u0436\u0435 \u043f\u043e\u043a\u0440\u0438\u0442\u0456 \u0442\u0435\u0441\u0442\u0430\u043c\u0438, \u0442\u043e\u043c\u0443 \u0442\u0430\u043a\u0456 \u0431\u0443\u0434\u0443\u0442\u044c \u043d\u0430\u0439\u0448\u0432\u0438\u0434\u0448\u0435 \u0440\u043e\u0437\u0433\u043b\u044f\u0434\u0430\u0442\u0438\u0441\u044c \u0434\u043b\u044f \u0440\u0435\u043b\u0456\u0437\u0443. \u0427\u0438&nbsp;\u043c\u043e\u0436\u043d\u0430 \u0432\u0436\u0435 \u0437\u0430\u0440\u0430\u0437 \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0442\u0438\u0441\u044c \u0444\u0443\u043d\u043a\u0446\u0456\u043e\u043d\u0430\u043b\u043e\u043c \u0456\u0437&nbsp;\u043c\u0430\u0439\u0431\u0443\u0442\u043d\u044c\u043e\u0457 \u0440\u0435\u0434\u0430\u043a\u0446\u0456\u0457 ECMAScript? \u0422\u0430\u043a, \u0446\u0435&nbsp;\u043c\u043e\u0436\u043b\u0438\u0432\u043e! \u0427\u0430\u0441\u0442\u0438\u043d\u0430 \u043d\u043e\u0432\u0438\u0445 \u043c\u043e\u0436\u043b\u0438\u0432\u043e\u0441\u0442\u0435\u0439 \u0432\u0436\u0435 \u0454&nbsp;\u0432&nbsp;\u0434\u0435\u044f\u043a\u0438\u0445 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430\u0445 \u0447\u0438&nbsp;\u0432&nbsp;Node.JS, \u0430\u043b\u0435 \u0431\u0430\u0433\u0430\u0442\u043e \u0456\u043d\u0448\u0438\u0445 \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u044e\u0442\u044c \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u044c\u043e\u0433\u043e \u0442\u0440\u0430\u043d\u0441\u043a\u043e\u043c\u043f\u0456\u043b\u044f\u0442\u043e\u0440\u0430 ECMAScript.<\/p>\n\n\n\n<p>\u041e\u0441\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0442\u0438\u0445 \u043c\u043e\u0436\u043b\u0438\u0432\u043e\u0441\u0442\u0435\u0439 \u044f\u043a\u0456 \u043d\u0430\u0440\u0430\u0437\u0456 \u0454&nbsp;\u043d\u0430&nbsp;\u0442\u0440\u0435\u0442\u0456\u0439 \u0441\u0442\u0430\u0434\u0456\u0457, \u0442\u0430&nbsp;\u0432\u0436\u0435 \u043f\u043e\u043a\u0440\u0438\u0442\u0456 \u0442\u0435\u0441\u0442\u0430\u043c\u0438&nbsp;\u2014 Hashbang Grammar. \u0422\u0430\u043a\u0438\u0439 \u043a\u043e\u043c\u0435\u043d\u0442\u0430\u0440 \u043f\u043e\u0432\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0442\u0430\u043a \u0441\u0430\u043c\u043e, \u044f\u043a&nbsp;\u043a\u043e\u043c\u0435\u043d\u0442\u0430\u0440 (\/\/). \u0412\u0456\u043d \u0434\u043e\u0437\u0432\u043e\u043b\u0435\u043d\u0438\u0439 \u0442\u0456\u043b\u044c\u043a\u0438 \u043d\u0430&nbsp;\u043f\u043e\u0447\u0430\u0442\u043a\u0443 \u0441\u043a\u0440\u0438\u043f\u0442\u0430. \u0410\u043b\u0435 \u043f\u043e\u0447\u0438\u043d\u0430\u0454\u0442\u044c\u0441\u044f \u0437&nbsp;\u0437\u043d\u0430\u043a\u0456\u0432 #!, \u043f\u0440\u0438 \u0446\u044c\u043e\u043c\u0443 \u043d\u0435&nbsp;\u043c\u043e\u0436\u043d\u0430 \u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u043d\u0456\u044f\u043a\u0438\u0445 \u043f\u0440\u043e\u0431\u0456\u043b\u044c\u043d\u0438\u0445 \u0437\u043d\u0430\u043a\u0456\u0432 \u043f\u0435\u0440\u0435\u0434 \u043d\u0438\u043c.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#!\/usr\/bin\/env&nbsp;node\n\/\/&nbsp;in&nbsp;the&nbsp;Script&nbsp;Goal\n'use&nbsp;strict';\nconsole.log(1);\n&nbsp;\n#!\/usr\/bin\/env&nbsp;node\n\/\/&nbsp;in&nbsp;the&nbsp;Module&nbsp;Goal\n<strong>export<\/strong>&nbsp;{};\nconsole.log(1);\n<\/pre>\n\n\n\n<p>\u0422\u0430\u043a\u0438\u0439 \u0441\u0442\u0438\u043b\u044c \u0442\u0440\u0435\u0431\u0430 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0442\u0456\u043b\u044c\u043a\u0438, \u0449\u043e\u0431 \u0432\u043a\u0430\u0437\u0430\u0442\u0438 \u0456\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440 JavaScript.<\/p>\n\n\n\n<p>\u0423&nbsp;\u0432\u0441\u0456\u0445 \u0456\u043d\u0448\u0438\u0445 \u0432\u0438\u043f\u0430\u0434\u043a\u0430\u0445 \u0442\u0440\u0435\u0431\u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u0437\u0432\u0438\u0447\u0430\u0439\u043d\u0438\u0439 \u043a\u043e\u043c\u0435\u043d\u0442\u0430\u0440 (\/\/)<\/p>\n\n\n\n<h3>Numeric separators<\/h3>\n\n\n\n<p>\u0414\u0435\u044f\u043a\u0456 \u043c\u043e\u0432\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u0443\u0432\u0430\u043d\u043d\u044f, \u044f\u043a&nbsp;\u043d\u0430\u043f\u0440\u0438\u043a\u043b\u0430\u0434 Java \u0430\u0431\u043e&nbsp;C++, \u0432\u0436\u0435 \u0434\u0430\u0432\u043d\u043e \u0434\u0430\u044e\u0442\u044c \u043c\u043e\u0436\u043b\u0438\u0432\u0456\u0441\u0442\u044c \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0442\u0430\u043a\u0456 \u0447\u0438\u0441\u043b\u043e\u0432\u0456 \u0440\u043e\u0437\u0434\u0456\u043b\u044c\u043d\u0438\u043a\u0438. \u0429\u043e\u0431 \u043f\u043e\u043a\u0440\u0430\u0449\u0438\u0442\u0438 \u0447\u0438\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u0456\u0441\u0442\u044c, \u0442\u0435\u043f\u0435\u0440 \u043c\u043e\u0436\u043d\u0430 \u0437\u0433\u0440\u0443\u043f\u0443\u0432\u0430\u0442\u0438 \u0447\u0438\u0441\u043b\u0430 \u043d\u0430\u043f\u0440\u0438\u043a\u043b\u0430\u0434 \u043d\u0430&nbsp;\u0442\u0438\u0441\u044f\u0447\u0456: 1_000_000_000<\/p>\n\n\n\n<p>\u0406&nbsp;\u043d\u0435&nbsp;\u0442\u0456\u043b\u044c\u043a\u0438 \u043d\u0430&nbsp;\u0442\u0438\u0441\u044f\u0447\u0456, \u0430&nbsp;\u043c\u043e\u0436\u043d\u0430 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0443&nbsp;\u0431\u0430\u0433\u0430\u0442\u044c\u043e\u0445 \u0456\u043d\u0448\u0438\u0445 \u0432\u0438\u043f\u0430\u0434\u043a\u0430\u0445.<\/p>\n\n\n\n<p>\u041d\u0430\u043f\u0440\u0438\u043a\u043b\u0430\u0434 \u0447\u0438\u0441\u043b\u043e \u0432&nbsp;\u0441\u0430\u043d\u0442\u0438\u043c\u0435\u0442\u0440\u0430\u0445, \u0447\u0438\u0441\u043b\u043e\u0432\u0435 \u0440\u043e\u0437\u0434\u0456\u043b\u0435\u043d\u043d\u044f \u0434\u043e\u043f\u043e\u043c\u0430\u0433\u0430\u0454 \u0434\u043b\u044f \u0447\u0438\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0456 \u0432&nbsp;\u043c\u0435\u0442\u0440\u0430\u0445 10_00 \/\/ 10&nbsp;meters<\/p>\n\n\n\n<p>\u0410&nbsp;\u0447\u0438&nbsp;\u043d\u0435&nbsp;\u0431\u0443\u043b\u043e&nbsp;\u0431 \u0434\u043e\u0431\u0440\u0435, \u0449\u043e\u0431 \u0442\u0430\u043a\u0435 \u0431\u0443\u043b\u043e \u0456&nbsp;\u0432&nbsp;JavaScript?<\/p>\n\n\n\n<p>\u0411\u0435\u0437\u0443\u043c\u043e\u0432\u043d\u043e! \u0406&nbsp;\u0441\u043a\u043e\u0440\u043e \u0446\u0435&nbsp;\u0431\u0443\u0434\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0432&nbsp;\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0456\u0439 \u0441\u043f\u0435\u0446\u0438\u0444\u0456\u043a\u0430\u0446\u0456\u0457 ES. \u0410&nbsp;\u0437&nbsp;\u0442\u0440\u0430\u0432\u043d\u044f 2020&nbsp;\u0440\u043e\u043a\u0443, \u0432\u0436\u0435 \u0454&nbsp;\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0432&nbsp;\u0431\u0456\u043b\u044c\u0448\u043e\u0441\u0442\u0456 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0456\u0432 (Chrome, Firefox, Edge, Safari). \u0410&nbsp;\u044f\u043a\u0449\u043e \u043f\u0440\u0430\u0446\u044e\u0454\u0448 \u0437&nbsp;Node.js \u0442\u043e&nbsp;\u0443&nbsp;\u0432\u0435\u0440\u0441\u0456\u0457 v12.5.0 \u0442\u0430\u043a\u043e\u0436 \u0432\u0436\u0435&nbsp;\u0454. \u0406&nbsp;\u0432&nbsp;\u0415\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u0456, \u0437\u0432\u0456\u0441\u043d\u043e \ud83d\ude42<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>const<\/strong>&nbsp;decimal&nbsp;=&nbsp;1_234;\n<strong>const<\/strong>&nbsp;binary&nbsp;=&nbsp;0b1000_0101;\n<strong>const<\/strong>&nbsp;hex&nbsp;=&nbsp;0x12_34_56_78;\n&nbsp;\nTop-level&nbsp;<strong>await<\/strong>\n\u0420\u0456\u043a&nbsp;\u043d\u0430\u0437\u0430\u0434&nbsp;\u0442\u0430\u043a\u0443&nbsp;\u043c\u043e\u0436\u043b\u0438\u0432\u0456\u0441\u0442\u044c&nbsp;\u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438&nbsp;\u0443&nbsp;V8&nbsp;\u0434\u043b\u044f&nbsp;ES&nbsp;\u043c\u043e\u0434\u0443\u043b\u0456\u0432.\n&nbsp;\u0410&nbsp;\u0437\u0430\u0440\u0430\u0437,&nbsp;Top-level&nbsp;<strong>await<\/strong>,&nbsp;\u043d\u0430&nbsp;3&nbsp;\u0441\u0442\u0430\u0434\u0456\u0457,&nbsp;\u0449\u043e\u0431&nbsp;\u0434\u043e\u0431\u0430\u0432\u0438\u0442\u0438&nbsp;\u0432&nbsp;\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443&nbsp;\u0441\u043f\u0435\u0446\u0438\u0444\u0456\u043a\u0430\u0446\u0456\u044e&nbsp;ES.\n\u0414\u043e&nbsp;\u0446\u044c\u043e\u0433\u043e,&nbsp;\u043c\u0438&nbsp;\u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u043b\u0438&nbsp;<strong>await<\/strong>&nbsp;\u043b\u0438\u0448\u0435&nbsp;\u0432\u0441\u0435\u0440\u0435\u0434\u0438\u043d\u0456&nbsp;<strong>async<\/strong>&nbsp;\u0444\u0443\u043d\u043a\u0446\u0456\u0457.\n(<strong>async<\/strong>&nbsp;()&nbsp;=&gt;&nbsp;{\n&nbsp;&nbsp;<strong>await<\/strong>&nbsp;fetch(\/*&nbsp;...&nbsp;*\/)\n})()\n\n<strong>const<\/strong>&nbsp;doSomething&nbsp;=&nbsp;<strong>async<\/strong>&nbsp;()&nbsp;=&gt;&nbsp;{\n&nbsp;&nbsp;<strong>await<\/strong>&nbsp;fetch(\/*&nbsp;...&nbsp;*\/)\n}\n\ndoSomething()\n&nbsp;\nTop-level&nbsp;<strong>await<\/strong>&nbsp;\u0434\u0430\u0454&nbsp;\u043c\u043e\u0436\u043b\u0438\u0432\u0456\u0441\u0442\u044c&nbsp;\u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438&nbsp;<strong>await<\/strong>&nbsp;\u0431\u0435\u0437&nbsp;<strong>async<\/strong>\n<strong>await<\/strong>&nbsp;fetch(\/*&nbsp;...&nbsp;*\/)\n&nbsp;\n<strong>const<\/strong>&nbsp;strings&nbsp;=&nbsp;<strong>await<\/strong>&nbsp;<strong>import<\/strong>(`\/i18n\/${navigator.language}`);\n<strong>const<\/strong>&nbsp;connection&nbsp;=&nbsp;<strong>await<\/strong>&nbsp;dbConnector();\n<\/pre>\n\n\n\n<h3>WeakRefs<\/h3>\n\n\n\n<p>\u0412&nbsp;JavaScript, garbage collector \u0432\u0438\u0434\u0430\u043b\u044f\u0454 \u043e\u0431\u2019\u0454\u043a\u0442, \u044f\u043a&nbsp;\u0442\u0456\u043b\u044c\u043a\u0438 \u043d\u0430&nbsp;\u043d\u0438\u0445 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u044e\u0442\u044c \u043f\u043e\u0441\u0438\u043b\u0430\u0442\u0438\u0441\u044f. \u0422\u0430\u043a\u0438\u0439 \u043f\u0456\u0434\u0445\u0456\u0434 \u0434\u043e\u0431\u0440\u0435 \u043f\u0440\u0430\u0446\u044e\u0454 \u0434\u043b\u044f \u043f\u043e\u0432\u0441\u044f\u043a\u0434\u0435\u043d\u043d\u0438\u0445 \u0437\u0430\u0434\u0430\u0447, \u0430\u043b\u0435 \u0431\u0443\u0432\u0430\u044e\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0456 \u0432&nbsp;\u044f\u043a\u0438\u0445 \u0442\u0430\u043a\u0435 \u043f\u043e\u0432\u043e\u0434\u0436\u0435\u043d\u043d\u044f \u043d\u0435&nbsp;\u043f\u0456\u0434\u0445\u043e\u0434\u0438\u0442\u044c. \u0414\u043e&nbsp;\u043f\u0440\u0438\u043a\u043b\u0430\u0434\u0456\u0432 \u0442\u0430\u043a\u0438\u0445 \u0437\u0430\u0434\u0430\u0447 \u043c\u043e\u0436\u043d\u0430 \u0432\u0456\u0434\u043d\u0435\u0441\u0442\u0438 \u0456\u043c\u043f\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0446\u0456\u044e \u043a\u0435\u0448\u0456\u0432 \u0447\u0438&nbsp;Map (\u043c\u0430\u043f\u0456\u043d\u0433\u0438) \u044f\u043a\u0438\u0439 \u043c\u0430\u0454 \u0432&nbsp;\u0441\u043e\u0431\u0456 \u0432\u0435\u043b\u0438\u043a\u0443 \u043a\u0456\u043b\u044c\u043a\u0456\u0441\u0442\u044c \u043e\u0431\u2019\u0454\u043a\u0442\u0456\u0432 (\u043d\u0430\u043f\u0440\u0438\u043a\u043b\u0430\u0434 \u043d\u0435\u043e\u0431\u0445\u0456\u0434\u043d\u043e \u0437\u0431\u0435\u0440\u0456\u0433\u0430\u0442\u0438 \u0432&nbsp;Map \u043f\u0430\u0440\u0443 \u0456\u0437&nbsp;\u0456\u043c\u0435\u043d\u0456 \u0444\u0430\u0439\u043b\u0430 \u0456&nbsp;\u0431\u0456\u043d\u0430\u0440\u043d\u0438\u0445 \u0434\u0430\u043d\u0438\u0445).<\/p>\n\n\n\n<p>\u0412&nbsp;ES6 \u0434\u043b\u044f \u0442\u0430\u043a\u0438\u0445 \u0437\u0430\u0434\u0430\u0447 \u0432\u0432\u0435\u043b\u0438 WeakMap \u0456&nbsp;WeakSet, \u0430\u043b\u0435 \u043a\u0440\u0456\u043c \u0446\u044c\u043e\u0433\u043e \u0432&nbsp;JS \u043d\u0430&nbsp;\u0441\u0442\u0430\u0434\u0456\u0457 3&nbsp;\u0437\u2019\u044f\u0432\u0438\u0432\u0441\u044f WeakRef \u044f\u043a\u0438\u0439 \u0434\u043e\u0437\u0432\u043e\u043b\u044f\u0454 \u0441\u0442\u0432\u043e\u0440\u0438\u0442\u0438 \u0441\u043b\u0430\u0431\u0435 \u043f\u043e\u0441\u0438\u043b\u0430\u043d\u043d\u044f \u043d\u0430&nbsp;\u043e\u0431\u2019\u0454\u043a\u0442. \u0421\u043b\u0430\u0431\u043a\u0456 \u043f\u043e\u0441\u0438\u043b\u0430\u043d\u043d\u044f \u043d\u0430&nbsp;\u0432\u0456\u0434\u043c\u0456\u043d\u0443 \u0432\u0456\u0434 \u0437\u0432\u0438\u0447\u0430\u0439\u043d\u0438\u0445, \u043d\u0435&nbsp;\u043f\u0435\u0440\u0435\u0448\u043a\u043e\u0434\u0436\u0430\u044e\u0442\u044c \u0432\u0438\u0434\u0456\u043b\u0435\u043d\u043d\u044e \u043e\u0431\u2019\u0454\u043a\u0442\u0430 \u0456\u0437&nbsp;\u043f\u0430\u043c\u2019\u044f\u0442\u0456, \u0449\u043e&nbsp;\u0434\u043e\u0437\u0432\u043e\u043b\u044f\u0454 \u043f\u0435\u0440\u0435\u0448\u043a\u043e\u0434\u0438\u0442\u0438 \u043f\u0435\u0440\u0435\u043f\u043e\u0432\u043d\u0435\u043d\u043d\u044f \u043f\u0430\u043c\u2019\u044f\u0442\u0456 \u043f\u0440\u0438 \u0437\u0431\u0435\u0440\u0456\u0433\u0430\u043d\u043d\u0456 \u0432\u0435\u043b\u0438\u043a\u043e\u0457 \u043a\u0456\u043b\u044c\u043a\u043e\u0441\u0442\u0456 \u043e\u0431\u2019\u0454\u043a\u0442\u0456\u0432 \u0456&nbsp;\u0434\u043e\u043f\u043e\u043c\u0430\u0433\u0430\u0454 \u0432\u0438\u0440\u0456\u0448\u0438\u0442\u0438 \u0437\u0430\u0434\u0430\u0447\u0456 \u043e\u043f\u0438\u0441\u0430\u043d\u0456 \u0432\u0438\u0449\u0435.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>function<\/strong>&nbsp;<strong>makeWeakCached<\/strong>(f)&nbsp;{\n&nbsp;&nbsp;<strong>const<\/strong>&nbsp;cache&nbsp;=&nbsp;<strong>new<\/strong>&nbsp;Map();\n&nbsp;&nbsp;<strong>return<\/strong>&nbsp;key&nbsp;=&gt;&nbsp;{\n&nbsp;&nbsp;&nbsp;&nbsp;<strong>const<\/strong>&nbsp;ref&nbsp;=&nbsp;cache.get(key);\n&nbsp;&nbsp;&nbsp;&nbsp;<strong>if<\/strong>&nbsp;(ref)&nbsp;{\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>const<\/strong>&nbsp;cached&nbsp;=&nbsp;ref.deref();\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>if<\/strong>&nbsp;(cached&nbsp;!==&nbsp;undefined)&nbsp;<strong>return<\/strong>&nbsp;cached;\n&nbsp;&nbsp;&nbsp;&nbsp;}\n\n&nbsp;&nbsp;&nbsp;&nbsp;<strong>const<\/strong>&nbsp;fresh&nbsp;=&nbsp;f(key);\n&nbsp;&nbsp;&nbsp;&nbsp;cache.set(key,&nbsp;<strong>new<\/strong>&nbsp;WeakRef(fresh));\n&nbsp;&nbsp;&nbsp;&nbsp;<strong>return<\/strong>&nbsp;fresh;\n&nbsp;&nbsp;};\n}\n\n<strong>var<\/strong>&nbsp;getImageCached&nbsp;=&nbsp;makeWeakCached(getImage);\n<\/pre>\n\n\n\n<h3>RegExp Match Indices<\/h3>\n\n\n\n<p>\u0422\u0435\u043f\u0435\u0440 \u043f\u0440\u0438 \u0440\u043e\u0431\u043e\u0442\u0456 \u0437&nbsp;\u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u0438\u043c\u0438 \u0432\u0438\u0440\u0430\u0437\u0430\u043c\u0438, \u043a\u0440\u0456\u043c \u0441\u043f\u0456\u0432\u043f\u0430\u0434\u0456\u043d\u043d\u044f \u0442\u0430\u043a\u043e\u0436 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u0456\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0456\u044f \u043f\u0440\u043e \u043f\u043e\u0437\u0438\u0446\u0456\u044e \u0434\u0435&nbsp;\u0431\u0443\u043b\u043e \u0441\u043f\u0456\u0432\u043f\u0430\u0434\u0456\u043d\u043d\u044f \u0432&nbsp;\u0442\u0435\u043a\u0441\u0442\u0456. \u0406\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0456\u044f \u043f\u0440\u043e \u043f\u043e\u0437\u0438\u0446\u0456\u0457 \u0434\u043b\u044f \u043a\u043e\u0436\u043d\u043e\u0433\u043e \u0441\u043f\u0456\u0432\u043f\u0430\u0434\u0456\u043d\u043d\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0435 \u0432&nbsp;\u043f\u043e\u043b\u0435 .indices<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>let<\/strong>&nbsp;re&nbsp;=&nbsp;\/javascript&nbsp;is&nbsp;([A-Za-z]+)\/i;\n<strong>let<\/strong>&nbsp;result&nbsp;=&nbsp;re.exec('javascript&nbsp;is&nbsp;awesome');\nconsole.log(result,&nbsp;result.indices);\n\n\/\/&nbsp;[\"javascript&nbsp;is&nbsp;awesome\",&nbsp;\"awesome\"]\n\/\/&nbsp;[[0,&nbsp;21],&nbsp;[14,&nbsp;21]]\n<\/pre>\n\n\n\n<p>\u041d\u0430&nbsp;\u0434\u0430\u043d\u0438\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0444\u0456\u0447\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u0442\u0456\u043b\u044c\u043a\u0438 \u0437\u0430&nbsp;\u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e \u043f\u043e\u043b\u0456\u0444\u0456\u043b\u0430, \u0456&nbsp;\u0432&nbsp;Google Chrome \u0447\u0435\u0440\u0435\u0437&nbsp;<a href=\"https:\/\/bugs.chromium.org\/p\/v8\/issues\/detail?id=9548\" target=\"_blank\" rel=\"noreferrer noopener\">\u043e\u043f\u0446\u0456\u044e<\/a>&nbsp;<code>--harmony-regexp-match-indices<\/code><\/p>\n\n\n\n<h3>Promise.any<\/h3>\n\n\n\n<p>Promise.any \u043f\u0440\u0438\u0439\u043c\u0430\u0454 \u043c\u0430\u0441\u0438\u0432 \u043f\u0440\u043e\u043c\u0456\u0441\u0456\u0432 \u0456&nbsp;\u043f\u043e\u0432\u0435\u0440\u0442\u0430\u0454 \u043f\u0440\u043e\u043c\u0456\u0441 \u044f\u043a\u0438\u0439 \u0432\u0438\u043f\u043e\u0432\u043d\u0438\u0432\u0441\u044f \u043f\u0456\u0441\u043b\u044f \u0442\u043e\u0433\u043e, \u044f\u043a&nbsp;\u043f\u0435\u0440\u0448\u0438\u0439 \u043f\u0440\u043e\u043c\u0456\u0441\u0456\u0432 \u0456\u0437&nbsp;\u043c\u0430\u0441\u0438\u0432\u0443 \u0431\u0443\u0432 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u0439, \u043d\u0430&nbsp;\u0432\u0456\u0434\u043c\u0456\u043d\u0443 \u0432\u0456\u0434 Promise.all, \u043a\u043e\u043b\u0438 \u0432\u0441\u0456\u043c \u043f\u0440\u043e\u043c\u0456\u0441\u0438 \u0437&nbsp;\u043c\u0430\u0441\u0438\u0432\u0443 \u043f\u043e\u0432\u0438\u043d\u043d\u0456 \u0431\u0443\u0442\u0438 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u043c\u0438. Promise.any \u043f\u043e\u0432\u0435\u0440\u0442\u0430\u0454 \u043f\u043e\u043c\u0438\u043b\u043a\u0443 \u0432&nbsp;\u0442\u043e\u043c\u0443 \u0432\u0438\u043f\u0430\u0434\u043a\u0443, \u043a\u043e\u043b\u0438 \u0432\u0441\u0456 \u043f\u0440\u043e\u043c\u0456\u0441\u0438 \u0437&nbsp;\u043c\u0430\u0441\u0438\u0432\u0430 \u0442\u0430\u043a\u043e\u0436 \u0432\u0435\u0440\u043d\u0443\u043b\u0438 \u043f\u043e\u043c\u0438\u043b\u043a\u0443, \u043d\u0430&nbsp;\u0432\u0456\u0434\u043c\u0456\u043d\u0443 \u0432\u0456\u0434 Promise.all \u0434\u0435&nbsp;\u043f\u043e\u043c\u0438\u043b\u043a\u0430 \u0431\u0443\u043b\u0430 \u0432&nbsp;\u043f\u0435\u0440\u0448\u043e\u043c\u0443 \u043f\u0440\u043e\u043c\u0456\u0441\u0456 \u0437&nbsp;\u043c\u0430\u0441\u0438\u0432\u0443.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Promise.any(promises).<strong>then<\/strong>(\n&nbsp;&nbsp;(first)&nbsp;=&gt;&nbsp;{\n&nbsp;&nbsp;&nbsp;&nbsp;\/\/&nbsp;Any&nbsp;<strong>of<\/strong>&nbsp;the&nbsp;promises&nbsp;was&nbsp;fulfilled.\n&nbsp;&nbsp;},\n&nbsp;&nbsp;(error)&nbsp;=&gt;&nbsp;{\n&nbsp;&nbsp;&nbsp;&nbsp;\/\/&nbsp;All&nbsp;<strong>of<\/strong>&nbsp;the&nbsp;promises&nbsp;were&nbsp;rejected.\n&nbsp;&nbsp;}\n);\n<\/pre>\n\n\n\n<h3>Logical Assignment Operators<\/h3>\n\n\n\n<p>\u0426\u044f&nbsp;\u043c\u043e\u0436\u043b\u0438\u0432\u0456\u0441\u0442\u044c \u0434\u0430\u0454 \u043f\u043e\u0454\u0434\u043d\u0430\u0442\u0438 \u043b\u043e\u0433\u0456\u0447\u043d\u0438\u0439 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u0442\u0430&nbsp;\u0432\u0438\u0440\u0430\u0437\u0438 \u043f\u0440\u0438\u0441\u0432\u043e\u044e\u0432\u0430\u043d\u043d\u044f (Assignment Expressions). \u041c\u043e\u0436\u043d\u0430 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u043b\u043e\u0433\u0456\u0447\u043d\u0456 \u043f\u0440\u0438\u0441\u0432\u043e\u044e\u0432\u0430\u043d\u043d\u044f \u0456\u0437&nbsp;\u043d\u043e\u0432\u0438\u043c\u0438 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430\u043c\u0438&nbsp;<code>&amp;&amp;=,&nbsp;||=,&nbsp;and&nbsp;??=&nbsp;<\/code><\/p>\n\n\n\n<p>\u0415\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u0430 \u0456\u043c\u043f\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0446\u0456\u044f \u043b\u043e\u0433\u0456\u0447\u043d\u0438\u0445 \u043f\u0440\u0438\u0441\u0432\u043e\u044e\u0432\u0430\u043d\u044c \u0432\u0436\u0435 \u0454&nbsp;\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u0443&nbsp;V8&nbsp;v8.4 \u0447\u0435\u0440\u0435\u0437 \u043e\u043f\u0446\u0456\u044e&nbsp;<code>--harmony-logical-assignment<\/code><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/\/&nbsp;\"Or&nbsp;Or&nbsp;Equals\"&nbsp;(<strong>or<\/strong>,&nbsp;the&nbsp;Mallet&nbsp;operator&nbsp;:wink:)\na&nbsp;||=&nbsp;b;\na&nbsp;||&nbsp;(a&nbsp;=&nbsp;b);\n\n\/\/&nbsp;\"And&nbsp;And&nbsp;Equals\"\na&nbsp;&amp;&amp;=&nbsp;b;\na&nbsp;&amp;&amp;&nbsp;(a&nbsp;=&nbsp;b);\n\n\/\/&nbsp;\"QQ&nbsp;Equals\"\na&nbsp;??=&nbsp;b;\na&nbsp;??&nbsp;(a&nbsp;=&nbsp;b);\n<\/pre>\n\n\n\n<h3>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044f<\/h3>\n\n\n\n<p>JavaScript \u0446\u0435&nbsp;\u0436\u0438\u0432\u0430 \u0442\u0430&nbsp;\u0448\u0438\u0440\u043e\u043a\u043e \u0440\u043e\u0437\u043f\u043e\u0432\u0441\u044e\u0434\u0436\u0435\u043d\u0430 \u043c\u043e\u0432\u0430, \u044f\u043a\u0430 \u0440\u043e\u0437\u0448\u0438\u0440\u044e\u0454 \u043c\u043e\u0436\u043b\u0438\u0432\u043e\u0441\u0442\u0456 \u0432\u0435\u0431 \u0440\u043e\u0437\u0440\u043e\u0431\u043a\u0438. \u041d\u043e\u0432\u0456 \u043c\u043e\u0436\u043b\u0438\u0432\u043e\u0441\u0442\u0456 JavaScript, \u043d\u0430&nbsp;\u043c\u043e\u044e \u0434\u0443\u043c\u043a\u0443, \u0431\u0443\u0434\u0443\u0442\u044c \u0434\u043e\u0441\u0438\u0442\u044c \u043a\u043e\u0440\u0438\u0441\u043d\u0438\u043c\u0438 \u0434\u043b\u044f \u0432\u0430\u0448\u043e\u0457 \u0432\u0435\u0431 \u0430\u043f\u043b\u0456\u043a\u0430\u0446\u0456\u0457. \u0414\u0443\u043c\u0430\u044e, \u0446\u0435&nbsp;\u0445\u043e\u0440\u043e\u0448\u0438\u0439 \u0432\u0430\u0440\u0456\u0430\u043d\u0442 \u043f\u043e\u0437\u0431\u0443\u0442\u0438\u0441\u044c \u0434\u0435\u043a\u0456\u043b\u044c\u043a\u043e\u0445 \u0437\u0430\u0441\u0442\u0430\u0440\u0456\u043b\u0438\u0445 \u0445\u0430\u043a\u0456\u0432 \u0456&nbsp;\u043f\u0438\u0441\u0430\u0442\u0438 \u043d\u0430\u0431\u0430\u0433\u0430\u0442\u043e \u043c\u0435\u043d\u0448\u0435 \u043a\u043e\u0434\u0443 \u043d\u0456\u0436 \u0431\u0443\u043b\u043e \u0440\u0430\u043d\u0456\u0448\u0435 \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041e\u0441\u0442\u0430\u043d\u043d\u0456 \u0440\u043e\u043a\u0438 JavaScript \u0440\u043e\u0437\u0432\u0438\u0432\u0430\u0454\u0442\u044c\u0441\u044f \u0434\u0443\u0436\u0435 \u0448\u0432\u0438\u0434\u043a\u043e, \u0430&nbsp;\u043f\u043e\u0447\u0438\u043d\u0430\u044e\u0447\u0438 \u0437\u0430&nbsp;2015 \u0440\u043e\u043a\u0443 \u0432\u0456\u043d \u043d\u0435\u0432\u043f\u0438\u043d\u043d\u043e \u0440\u043e\u0437\u0432\u0438\u0432\u0430\u0454\u0442\u044c\u0441\u044f \u0437&nbsp;\u0440\u043e\u043a\u0443 \u0432&nbsp;\u0440\u0456\u043a \u0456&nbsp;\u0441\u0442\u0430\u0454 \u0431\u0456\u043b\u044c\u0448 \u0433\u043d\u0443\u0447\u043a\u0438\u043c.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[30],"tags":[95],"_links":{"self":[{"href":"https:\/\/lvboard.infostore.in.ua\/index.php?rest_route=\/wp\/v2\/posts\/1206"}],"collection":[{"href":"https:\/\/lvboard.infostore.in.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lvboard.infostore.in.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lvboard.infostore.in.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lvboard.infostore.in.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1206"}],"version-history":[{"count":1,"href":"https:\/\/lvboard.infostore.in.ua\/index.php?rest_route=\/wp\/v2\/posts\/1206\/revisions"}],"predecessor-version":[{"id":1207,"href":"https:\/\/lvboard.infostore.in.ua\/index.php?rest_route=\/wp\/v2\/posts\/1206\/revisions\/1207"}],"wp:attachment":[{"href":"https:\/\/lvboard.infostore.in.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1206"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lvboard.infostore.in.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1206"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lvboard.infostore.in.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1206"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}