-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path8b8cd8dc.91a067f8.js
1 lines (1 loc) · 44.7 KB
/
8b8cd8dc.91a067f8.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[58],{115:function(e,t,n){"use strict";n.r(t),n.d(t,"frontMatter",(function(){return c})),n.d(t,"metadata",(function(){return l})),n.d(t,"rightToc",(function(){return i})),n.d(t,"default",(function(){return o}));var a=n(2),r=n(6),b=(n(0),n(174)),c={id:"javascript07",title:"\u0427\u0438\u0441\u043b\u0430",sidebar_label:"\u0427\u0438\u0441\u043b\u0430"},l={unversionedId:"javascript07",id:"javascript07",isDocsHomePage:!1,title:"\u0427\u0438\u0441\u043b\u0430",description:"\u0412 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u043c JavaScript \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0434\u0432\u0430 \u0442\u0438\u043f\u0430 \u0447\u0438\u0441\u0435\u043b:",source:"@site/docs/javascript07.md",slug:"/javascript07",permalink:"/docs/javascript07",editUrl:"https://github.com/facebook/docusaurus/edit/master/website/docs/javascript07.md",version:"current",sidebar_label:"\u0427\u0438\u0441\u043b\u0430",sidebar:"someSidebar",previous:{title:"\u0421\u0442\u0440\u043e\u043a\u0438",permalink:"/docs/javascript06"},next:{title:"\u0418\u0441\u0442\u0438\u043d\u0430 \u0438\u043b\u0438 \u043b\u043e\u0436\u044c?",permalink:"/docs/javascript08"}},i=[{value:"\u0410\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f",id:"\u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435-\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f",children:[]},{value:"\u041a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u0435",id:"\u043a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435-\u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u0435",children:[]},{value:"\u0418\u043d\u043a\u0440\u0435\u043c\u0435\u043d\u0442 \u0438 \u0434\u0435\u043a\u0440\u0435\u043c\u0435\u043d\u0442",id:"\u0438\u043d\u043a\u0440\u0435\u043c\u0435\u043d\u0442-\u0438-\u0434\u0435\u043a\u0440\u0435\u043c\u0435\u043d\u0442",children:[]},{value:"\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 modulo",id:"\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440-modulo",children:[]},{value:"\u041e\u043a\u0440\u0443\u0433\u043b\u0435\u043d\u0438\u0435",id:"\u043e\u043a\u0440\u0443\u0433\u043b\u0435\u043d\u0438\u0435",children:[]},{value:"\u0412\u043e\u043f\u0440\u043e\u0441\u044b:",id:"\u0432\u043e\u043f\u0440\u043e\u0441\u044b",children:[]},{value:"\u0421\u0441\u044b\u043b\u043a\u0438:",id:"\u0441\u0441\u044b\u043b\u043a\u0438",children:[]},{value:"Contributors \u2728",id:"contributors-",children:[]}],p={rightToc:i};function o(e){var t=e.components,c=Object(r.a)(e,["components"]);return Object(b.b)("wrapper",Object(a.a)({},p,c,{components:t,mdxType:"MDXLayout"}),Object(b.b)("p",null,"\u0412 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u043c JavaScript \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0434\u0432\u0430 \u0442\u0438\u043f\u0430 \u0447\u0438\u0441\u0435\u043b:"),Object(b.b)("ul",null,Object(b.b)("li",{parentName:"ul"},Object(b.b)("inlineCode",{parentName:"li"},"number")," \u041e\u0431\u044b\u0447\u043d\u044b\u0435 \u0447\u0438\u0441\u043b\u0430 \u0432 JavaScript \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0432 64-\u0431\u0438\u0442\u043d\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435 IEEE-754, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0442\u0430\u043a\u0436\u0435 \u043d\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \xab\u0447\u0438\u0441\u043b\u0430 \u0441 \u043f\u043b\u0430\u0432\u0430\u044e\u0449\u0435\u0439 \u0442\u043e\u0447\u043a\u043e\u0439 \u0434\u0432\u043e\u0439\u043d\u043e\u0439 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438\xbb (double precision floating point numbers). \u042d\u0442\u043e \u0447\u0438\u0441\u043b\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0447\u0430\u0449\u0435 \u0432\u0441\u0435\u0433\u043e. \u0426\u0435\u043b\u044b\u0435 \u0447\u0438\u0441\u043b\u0430 \u043d\u0435 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u043a\u0430\u043a \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0442\u0438\u043f \u0447\u0438\u0441\u0435\u043b. \u0412 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043a \u0447\u0438\u0441\u043b\u0430\u043c \u0441 \u043f\u043b\u0430\u0432\u0430\u044e\u0449\u0435\u0439 \u0437\u0430\u043f\u044f\u0442\u043e\u0439, \u043a \u0447\u0438\u0441\u043b\u043e\u0432\u043e\u043c\u0443 \u0442\u0438\u043f\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u043e\u0442\u043d\u043e\u0441\u044f\u0442\u0441\u044f \u0442\u0430\u043a\u0436\u0435 \u0442\u0440\u0438 \u0441\u0438\u043c\u0432\u043e\u043b\u044c\u043d\u044b\u0435 \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u044b: ",Object(b.b)("inlineCode",{parentName:"li"},"Infinity"),", ",Object(b.b)("inlineCode",{parentName:"li"},"-Infinity"),", \u0438 ",Object(b.b)("inlineCode",{parentName:"li"},"NaN")," (\u043d\u0435-\u0447\u0438\u0441\u043b\u043e)."),Object(b.b)("li",{parentName:"ul"},Object(b.b)("inlineCode",{parentName:"li"},"bigInt")," \u0447\u0438\u0441\u043b\u0430 \u0434\u0430\u044e\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0446\u0435\u043b\u044b\u043c\u0438 \u0447\u0438\u0441\u043b\u0430\u043c\u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0439 \u0434\u043b\u0438\u043d\u044b. \u041e\u043d\u0438 \u043d\u0443\u0436\u043d\u044b \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0440\u0435\u0434\u043a\u043e \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0432 \u0441\u043b\u0443\u0447\u0430\u044f\u0445, \u043a\u043e\u0433\u0434\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438 \u0431\u043e\u043b\u0435\u0435 \u0447\u0435\u043c 253 \u0438\u043b\u0438 \u043c\u0435\u043d\u0435\u0435 \u0447\u0435\u043c -253.")),Object(b.b)("p",null,"\u041b\u044e\u0431\u043e\u0435 \u0447\u0438\u0441\u043b\u043e, \u043f\u0443\u0441\u0442\u044c \u0434\u0430\u0436\u0435 \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u0430\u044f \u0434\u0440\u043e\u0431\u044c \u0441 \u0443\u0439\u043c\u043e\u0439 \u0437\u043d\u0430\u043a\u043e\u0432 \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u044f\u0442\u043e\u0439, \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0431\u0435\u0440\u0451\u0442\u0441\u044f \u0432 \u043a\u0430\u0432\u044b\u0447\u043a\u0438."),Object(b.b)("p",null,"\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0447\u0435\u0442\u044b\u0440\u0435 \u0442\u0438\u043f\u0430 \u0447\u0438\u0441\u043b\u043e\u0432\u044b\u0445 \u043b\u0438\u0442\u0435\u0440\u0430\u043b\u043e\u0432: \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u044b\u0439, \u0434\u0432\u043e\u0438\u0447\u043d\u044b\u0439, \u0432\u043e\u0441\u044c\u043c\u0435\u0440\u0438\u0447\u043d\u044b\u0439 \u0438 \u0448\u0435\u0441\u0442\u043d\u0430\u0434\u0446\u0430\u0442\u0435\u0440\u0438\u0447\u043d\u044b\u0439. \u0422\u0430\u043a \u043a\u0430\u043a \u0442\u0440\u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0440\u0435\u0434\u043a\u043e, \u0442\u043e \u043c\u044b \u043e\u043f\u0443\u0441\u0442\u0438\u043c \u0438\u0445 \u0434\u0435\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435, \u043d\u0443 \u0430 \u043b\u044e\u0431\u043e\u043f\u044b\u0442\u043d\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u043f\u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f \u0441 \u043d\u0438\u043c\u0438 ",Object(b.b)("a",Object(a.a)({parentName:"p"},{href:"https://developer.mozilla.org/ru/docs/Web/JavaScript/Guide/Numbers_and_dates"}),"\u0437\u0434\u0435\u0441\u044c"),"."),Object(b.b)("div",{className:"admonition admonition-caution alert alert--warning"},Object(b.b)("div",Object(a.a)({parentName:"div"},{className:"admonition-heading"}),Object(b.b)("h5",{parentName:"div"},Object(b.b)("span",Object(a.a)({parentName:"h5"},{className:"admonition-icon"}),Object(b.b)("svg",Object(a.a)({parentName:"span"},{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"}),Object(b.b)("path",Object(a.a)({parentName:"svg"},{fillRule:"evenodd",d:"M8.893 1.5c-.183-.31-.52-.5-.887-.5s-.703.19-.886.5L.138 13.499a.98.98 0 0 0 0 1.001c.193.31.53.501.886.501h13.964c.367 0 .704-.19.877-.5a1.03 1.03 0 0 0 .01-1.002L8.893 1.5zm.133 11.497H6.987v-2.003h2.039v2.003zm0-3.004H6.987V5.987h2.039v4.006z"})))),"caution")),Object(b.b)("div",Object(a.a)({parentName:"div"},{className:"admonition-content"}),Object(b.b)("p",{parentName:"div"},"\u0411\u0443\u0434\u044c\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u044b \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0443\u043b\u0435\u0439 \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0447\u0438\u0441\u0435\u043b! \u0417\u043d\u0430\u0447\u0438\u0442 \u043d\u0435 \u043d\u0430\u0434\u043e \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043d\u043e\u043b\u044c \u043f\u0435\u0440\u0435\u0434 \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u044b\u043c \u0447\u0438\u0441\u043b\u043e\u043c."))),Object(b.b)("pre",null,Object(b.b)("code",Object(a.a)({parentName:"pre"},{className:"language-jsx"}),"1234567890\n42\n\n0888 // 888 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u043e\u0435\n0777 // \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u0432\u043e\u0441\u044c\u043c\u0435\u0440\u0438\u0447\u043d\u043e\u0435 \u0432 \u043d\u0435\u0441\u0442\u0440\u043e\u0433\u043e\u0439 \u0444\u043e\u0440\u043c\u0435 (511 \u0432 \u0434\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u043e\u0439)\n")),Object(b.b)("h2",{id:"\u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435-\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f"},"\u0410\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f"),Object(b.b)("p",null,"\u041f\u043e \u0434\u0432\u0443\u043c \u0438\u043b\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c \u0446\u0435\u043b\u044b\u043c \u0447\u0438\u0441\u043b\u0430\u043c \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043d\u043e\u0432\u043e\u0435 \u0446\u0435\u043b\u043e\u0435 \u0447\u0438\u0441\u043b\u043e. \u0421\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u043d\u043e\u0432\u043e\u0435 \u0446\u0435\u043b\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0433\u043e. \u0421\u043f\u043e\u0441\u043e\u0431 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u043d\u043e\u0432\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u043f\u043e \u0434\u0432\u0443\u043c \u0438\u043b\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c \u0447\u0438\u0441\u043b\u0430\u043c \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435\u043c.\n\u0412\u043e\u043e\u0431\u0449\u0435 \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u043c\u043d\u043e\u0433\u043e, \u043d\u043e \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0435\u0442\u044b\u0440\u0435: \u0441\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0432\u044b\u0447\u0438\u0442\u0430\u043d\u0438\u0435, \u0443\u043c\u043d\u043e\u0436\u0435\u043d\u0438\u0435 \u0438 \u0434\u0435\u043b\u0435\u043d\u0438\u0435. \u041e\u043d\u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u044b \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u043c\u0438, \u0438\u0431\u043e \u0432\u0441\u0435 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043f\u0440\u0438\u0432\u043e\u0434\u044f\u0442\u0441\u044f \u043a \u043d\u0438\u043c."),Object(b.b)("p",null,"\u0417\u043d\u0430\u043a \u043f\u043b\u044e\u0441 ",Object(b.b)("inlineCode",{parentName:"p"},"+")," \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0441\u043b\u043e\u0436\u0435\u043d\u0438\u044f: ",Object(b.b)("inlineCode",{parentName:"p"},"4 + 4")," \u041e\u0442\u0432\u0435\u0442: ",Object(b.b)("inlineCode",{parentName:"p"},"8"),"\n\u041c\u0438\u043d\u0443\u0441 ",Object(b.b)("inlineCode",{parentName:"p"},"\u2013")," \u2014 \u0434\u043b\u044f \u0432\u044b\u0447\u0438\u0442\u0430\u043d\u0438\u044f: ",Object(b.b)("inlineCode",{parentName:"p"},"7 - 6")," \u041e\u0442\u0432\u0435\u0442: ",Object(b.b)("inlineCode",{parentName:"p"},"1"),"\n\u0417\u0432\u0451\u0437\u0434\u043e\u0447\u043a\u043e\u0439 ",Object(b.b)("inlineCode",{parentName:"p"},"*")," \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f \u0443\u043c\u043d\u043e\u0436\u0435\u043d\u0438\u0435: ",Object(b.b)("inlineCode",{parentName:"p"},"3 * 4")," \u041e\u0442\u0432\u0435\u0442: ",Object(b.b)("inlineCode",{parentName:"p"},"12"),"\n\u0410 \u043f\u0440\u044f\u043c\u044b\u043c \u0441\u043b\u044d\u0448\u0435\u043c ",Object(b.b)("inlineCode",{parentName:"p"},"/")," \u2014 \u0434\u0435\u043b\u0435\u043d\u0438\u0435: ",Object(b.b)("inlineCode",{parentName:"p"},"15 / 5")," \u041e\u0442\u0432\u0435\u0442: ",Object(b.b)("inlineCode",{parentName:"p"},"3"),"\n\u0415\u0441\u043b\u0438 \u0432 \u0441\u0442\u0440\u043e\u043a\u0435 \u0441\u043e\u0432\u0435\u0440\u0448\u0430\u0435\u0442\u0441\u044f \u0431\u043e\u043b\u0435\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f, \u0442\u043e, \u0447\u0442\u043e\u0431\u044b \u043e\u0442\u0434\u0435\u043b\u0438\u0442\u044c \u0438\u0445 \u0434\u0440\u0443\u0433 \u043e\u0442 \u0434\u0440\u0443\u0433\u0430, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043a\u043e\u0434 \u0431\u043e\u043b\u0435\u0435 \u0447\u0438\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u044b\u043c, \u043c\u044b \u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u2014 (\u0441\u043a\u043e\u0431\u043a\u0430\u043c\u0438). \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043d\u0430\u0431\u0435\u0440\u0451\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438. \u041e\u0442\u0432\u0435\u0442 \u043f\u043e \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u0438\u0437 \u043d\u0438\u0445 \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u043e\u0441\u0442\u043e\u044f\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0437 \u043e\u0434\u043d\u043e\u0439 \u0446\u0438\u0444\u0440\u044b:"),Object(b.b)("pre",null,Object(b.b)("code",Object(a.a)({parentName:"pre"},{})," 3 * (2 + 1)\n(3 + 9) / (10 - 6)\n(2 + 3 * 4) / (6 + 1)\n 2 * (5 - 8 / 2) * (3 + 1)\n")),Object(b.b)("p",null,"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0432 ",Object(b.b)("inlineCode",{parentName:"p"},"LIVE EDITOR")," \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f:"),Object(b.b)("pre",null,Object(b.b)("code",Object(a.a)({parentName:"pre"},{className:"language-jsx",metastring:"{2} live","{2}":!0,live:!0}),"function learnJavaScript() {\n let result = 2 + 3 // \u0437\u0434\u0435\u0441\u044c\n return result\n}\n")),Object(b.b)("h2",{id:"\u043a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435-\u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u0435"},"\u041a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u0435"),Object(b.b)("p",null,"\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u0441\u0438\u043c\u0432\u043e\u043b\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u043e\u0433\u043e \u0441 \u043e\u043f\u0435\u0440\u0430\u043d\u0434\u0430\u043c\u0438 \u0432 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0438(\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440: ",Object(b.b)("inlineCode",{parentName:"p"},"+"),", ",Object(b.b)("inlineCode",{parentName:"p"},"-"),", ",Object(b.b)("inlineCode",{parentName:"p"},"*"),", ",Object(b.b)("inlineCode",{parentName:"p"},"/"),")."),Object(b.b)("p",null,"\u041e\u043f\u0435\u0440\u0430\u043d\u0434 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u0443, \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u043c\u0443\u044e \u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435. \u041e\u043f\u0435\u0440\u0430\u043d\u0434\u044b \u043c\u043e\u0433\u0443\u0442 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u044c\u0441\u044f \u043a \u043b\u044e\u0431\u043e\u043c\u0443 \u0442\u0438\u043f\u0443 \u0434\u0430\u043d\u043d\u044b\u0445. \u041e\u043f\u0435\u0440\u0430\u043d\u0434 \u0441\u043b\u0435\u0432\u0430 \u043e\u0442 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 - \u043b\u0435\u0432\u044b\u0439 \u043e\u043f\u0435\u0440\u0430\u043d\u0434, \u043e\u043f\u0435\u0440\u0430\u043d\u0434 \u0441\u043f\u0440\u0430\u0432\u0430 \u043e\u0442 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 - \u043f\u0440\u0430\u0432\u044b\u0439 \u043e\u043f\u0435\u0440\u0430\u043d\u0434."),Object(b.b)("p",null,"\u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u043a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u044f - \u044d\u0442\u043e \u0437\u043d\u0430\u043a \u0440\u0430\u0432\u043d\u043e ",Object(b.b)("inlineCode",{parentName:"p"},"="),", \u043e\u043d \u0438 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0440\u0430\u0432\u043e\u0433\u043e \u043e\u043f\u0435\u0440\u0430\u043d\u0434\u0430, \u043b\u0435\u0432\u043e\u043c\u0443. \u0422\u043e \u0435\u0441\u0442\u044c - ",Object(b.b)("inlineCode",{parentName:"p"},"x = y")," \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 ",Object(b.b)("inlineCode",{parentName:"p"},"y"),", \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 ",Object(b.b)("inlineCode",{parentName:"p"},"x"),". \u0414\u0440\u0443\u0433\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u044f, \u043a\u0430\u043a \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0438\u0437 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u043e\u0439 \u043d\u0438\u0436\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0441 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f\u043c\u0438 \u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438, \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0441\u043e\u043a\u0440\u0430\u0449\u0435\u043d\u0438\u044f\u043c\u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439."),Object(b.b)("p",null,"\u0412\u044b \u0443\u0436\u0435 \u043d\u0435 \u0440\u0430\u0437 \u0432\u0438\u0434\u0435\u043b\u0438, \u043a\u0430\u043a \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u0432 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0442\u0430\u043a:"),Object(b.b)("pre",null,Object(b.b)("code",Object(a.a)({parentName:"pre"},{className:"language-javascript"}),"let sum = 2 + 3 // \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u0443\u043c\u043c\u044b \u2014 7\n")),Object(b.b)("p",null,"\u0410 \u0435\u0449\u0451 \u0432\u044b, \u043d\u0430\u0432\u0435\u0440\u043d\u043e\u0435, \u043d\u0435 \u0443\u0441\u043f\u0435\u043b\u0438 \u043f\u043e\u0437\u0430\u0431\u044b\u0442\u044c, \u0447\u0442\u043e \u0432 \u043b\u044e\u0431\u043e\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043c\u043e\u0436\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0443\u0436\u0435 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439:"),Object(b.b)("pre",null,Object(b.b)("code",Object(a.a)({parentName:"pre"},{className:"language-jsx",metastring:"live",live:!0}),"function learnJavaScript() {\n let sum = 2 + 3\n sum = sum + 3 // \u0442\u0435\u043f\u0435\u0440\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u0443\u043c\u043c\u044b \u0441\u0442\u0430\u043b\u043e 8\n return sum\n}\n")),Object(b.b)("p",null,"\u0421 \u044d\u0442\u0438\u043c \u0432\u0441\u0451 \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0430 \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u043e\u0434\u0435\u043b\u0430\u0435\u043c \u0434\u0440\u0443\u0433\u043e\u0439 \u0437\u0430\u043d\u044f\u0442\u043d\u044b\u0439 \u0442\u0440\u044e\u043a. \u041c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f ",Object(b.b)("inlineCode",{parentName:"p"},"+=")," (\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u043a \xab\u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u0435 \u0441\u043e \u0441\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c\xbb) \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0431\u044b\u0441\u0442\u0440\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439! \u042d\u0442\u043e \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u0435\u043c, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0441\u043f\u0435\u0440\u0432\u0430 \u0438\u043c\u0435\u0435\u0442 \u043c\u0435\u0441\u0442\u043e \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f \u043d\u0430\u0434 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u2014 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0442\u043e, \u0441 \u0447\u0435\u043c \u043a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u0437\u0430\u0442\u0435\u043c \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043d\u043e\u0432\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f. \u0412\u043e\u0442 \u0432\u0430\u043c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432:"),Object(b.b)("pre",null,Object(b.b)("code",Object(a.a)({parentName:"pre"},{className:"language-javascript"}),"let \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 = 5\n\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 += 2 // \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0442\u0435\u043f\u0435\u0440\u044c 7 (\u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u0447\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 = // \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 + 2)\n\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 += 3 // \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0442\u0435\u043f\u0435\u0440\u044c 10 (\u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u0447\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 = // \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 + 3)\n\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 = \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 + \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 // 20 (\u0430 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 += // \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435)\n\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 += \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 // 40 (\u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u0447\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 = \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 + // \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435)\n")),Object(b.b)("p",null,"\u0412\u044b \u0432\u0435\u0434\u044c \u0443\u0436\u0435 \u0434\u043e\u0433\u0430\u0434\u0430\u043b\u0438\u0441\u044c, \u0447\u0442\u043e \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0435 \u0448\u0442\u0443\u043a\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0438 \u0441 \u043f\u0440\u043e\u0447\u0438\u043c\u0438 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f\u043c\u0438, \u0434\u0430?!"),Object(b.b)("pre",null,Object(b.b)("code",Object(a.a)({parentName:"pre"},{className:"language-javascript"}),"\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u2013= 25 // \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0442\u0435\u043f\u0435\u0440\u044c 15 (\u0442\u043e \u0436\u0435, \u0447\u0442\u043e \u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 = \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u2212 // 25)\n\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 -= 2 // \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0442\u0435\u043f\u0435\u0440\u044c 30 (\u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u0447\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 = // \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 - 2)\n\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 /= 3 // \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0442\u0435\u043f\u0435\u0440\u044c 10 (\u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u0447\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 = // value / 3)\n\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 // \u041e\u0442\u0432\u0435\u0442: 10\n")),Object(b.b)("p",null,"\u0414\u0430\u043b\u0435\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0432\u0441\u0435 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u044b\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0432 ",Object(b.b)("inlineCode",{parentName:"p"},"LIVE EDITOR"),":"),Object(b.b)("pre",null,Object(b.b)("code",Object(a.a)({parentName:"pre"},{className:"language-jsx",metastring:"live",live:!0}),"function learnJavaScript() {\n let \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 = 0 + 0\n return \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\n}\n")),Object(b.b)("p",null,"\u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u0432\u0441\u0451 \u0437\u0434\u0435\u0441\u044c \u0431\u044b\u043b\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0438\u043d\u0442\u0443\u0438\u0442\u0438\u0432\u043d\u043e (\u0432 \u0442\u043e\u043c \u0441\u043c\u044b\u0441\u043b\u0435, \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043d\u0435 \u0448\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u0432\u0430\u0441 \u0441\u0432\u043e\u0435\u0439 \u043d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u043e\u0441\u0442\u044c\u044e). \u0415\u0441\u043b\u0438 \u043a\u0430\u043a\u0438\u0435-\u043b\u0438\u0431\u043e \u043c\u043e\u043c\u0435\u043d\u0442\u044b \u043e\u0441\u0442\u0430\u043b\u0438\u0441\u044c \u0432\u0430\u043c \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u044b \u2014 \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u0435\u0440\u043d\u0438\u0442\u0435\u0441\u044c \u043d\u0430\u0437\u0430\u0434 \u0438 \u043f\u0440\u043e\u0431\u0435\u0433\u0438\u0442\u0435\u0441\u044c \u043f\u043e \u043f\u0440\u043e\u0439\u0434\u0435\u043d\u043d\u043e\u043c\u0443 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0443 \u0441 \u043d\u0430\u0447\u0430\u043b\u0430 \u0433\u043b\u0430\u0432\u044b \u0435\u0449\u0451 \u0440\u0430\u0437. \u0415\u0441\u043b\u0438 \u0436\u0435 \u0438 \u0442\u043e\u0433\u0434\u0430 \u0447\u0442\u043e-\u0442\u043e \u043e\u0441\u0442\u0430\u043d\u0435\u0442\u0441\u044f \u043d\u0435\u044f\u0441\u043d\u044b\u043c \u2014 \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u0432\u0438\u0433\u0430\u0439\u0442\u0435\u0441\u044c \u0434\u0430\u043b\u044c\u0448\u0435 (\u043c\u044b \u0435\u0449\u0451 \u043d\u0435 \u0440\u0430\u0437 \u0431\u0443\u0434\u0435\u043c \u043a \u044d\u0442\u043e\u043c\u0443 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f, \u0442\u0430\u043a \u0447\u0442\u043e \u0440\u0430\u043d\u043e \u0438\u043b\u0438 \u043f\u043e\u0437\u0434\u043d\u043e \u043e\u043d\u043e \u0443\u0441\u0432\u043e\u0438\u0442\u0441\u044f)."),Object(b.b)("p",null,"\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0439 \u043e \u043a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u043c \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u043d\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c ",Object(b.b)("a",Object(a.a)({parentName:"p"},{href:"https://developer.mozilla.org/ru/docs/Web/JavaScript/Reference/Operators/Assignment_Operators"}),"\u0437\u0434\u0435\u0441\u044c")),Object(b.b)("h2",{id:"\u0438\u043d\u043a\u0440\u0435\u043c\u0435\u043d\u0442-\u0438-\u0434\u0435\u043a\u0440\u0435\u043c\u0435\u043d\u0442"},"\u0418\u043d\u043a\u0440\u0435\u043c\u0435\u043d\u0442 \u0438 \u0434\u0435\u043a\u0440\u0435\u043c\u0435\u043d\u0442"),Object(b.b)("p",null,"\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 ",Object(b.b)("inlineCode",{parentName:"p"},"++")," (\u0438\u043d\u043a\u0440\u0435\u043c\u0435\u043d\u0442) \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u0432\u043e\u0435\u0433\u043e \u043e\u043f\u0435\u0440\u0430\u043d\u0434\u0430 \u043d\u0430 \u0435\u0434\u0438\u043d\u0438\u0446\u0443. \u0415\u0441\u043b\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u043d\u0434\u0430 \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0447\u0438\u0441\u043b\u043e\u043c, \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442 \u0435\u0433\u043e \u0432 \u0447\u0438\u0441\u043b\u043e, \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043d\u0430 \u0435\u0434\u0438\u043d\u0438\u0446\u0443 \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043e\u0431\u0440\u0430\u0442\u043d\u043e \u043e\u043f\u0435\u0440\u0430\u043d\u0434\u0443:"),Object(b.b)("pre",null,Object(b.b)("code",Object(a.a)({parentName:"pre"},{className:"language-jsx",metastring:"live",live:!0}),"function learnJavaScript() {\n let increment = 0\n increment++\n return increment\n}\n")),Object(b.b)("p",null,"\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 ",Object(b.b)("inlineCode",{parentName:"p"},"--")," (\u0434\u0435\u043a\u0440\u0435\u043c\u0435\u043d\u0442) \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0443 \u0438\u043d\u043a\u0440\u0435\u043c\u0435\u043d\u0442, \u043d\u043e \u043d\u0435 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u0432\u043e\u0435\u0433\u043e \u043e\u043f\u0435\u0440\u0430\u043d\u0434\u0430, \u0430 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442, \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u0435\u0442 \u0435\u0433\u043e \u043d\u0430 \u0435\u0434\u0438\u043d\u0438\u0446\u0443:"),Object(b.b)("pre",null,Object(b.b)("code",Object(a.a)({parentName:"pre"},{className:"language-jsx",metastring:"live",live:!0}),"function learnJavaScript() {\n let decrement = 6\n decrement--\n return decrement\n}\n")),Object(b.b)("h2",{id:"\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440-modulo"},"\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 modulo"),Object(b.b)("p",null,"\u0417\u043d\u0430\u043a\u043e\u043c ",Object(b.b)("inlineCode",{parentName:"p"},"%")," (\u043f\u0440\u043e\u0446\u0435\u043d\u0442\u043e\u0432) \u043c\u044b \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0430\u0435\u043c \u043e\u0441\u0442\u0430\u0442\u043e\u043a \u043e\u0442 \u0434\u0435\u043b\u0435\u043d\u0438\u044f. \u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0446\u0435\u043b\u044b\u0439 \u043e\u0441\u0442\u0430\u0442\u043e\u043a \u043e\u0442 \u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043b\u0435\u0432\u043e\u0433\u043e \u043e\u043f\u0435\u0440\u0430\u043d\u0434\u0430 \u043d\u0430 \u043f\u0440\u0430\u0432\u044b\u0439. \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0437\u043d\u0430\u043a \u0434\u0435\u043b\u0438\u043c\u043e\u0433\u043e, \u0430 \u043d\u0435 \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044f. \u041e\u043d \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e modulo, \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0446\u0435\u043b\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u043c \u043e\u0441\u0442\u0430\u0442\u043a\u043e\u043c \u0434\u0435\u043b\u0435\u043d\u0438\u044f ",Object(b.b)("inlineCode",{parentName:"p"},"let1")," \u043d\u0430 ",Object(b.b)("inlineCode",{parentName:"p"},"let2"),"."),Object(b.b)("p",null,Object(b.b)("inlineCode",{parentName:"p"},"12 % 5")," \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 2"),Object(b.b)("p",null,Object(b.b)("inlineCode",{parentName:"p"},"NaN % 2")," \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 NaN"),Object(b.b)("p",null,Object(b.b)("inlineCode",{parentName:"p"},"1 % 2")," \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 1"),Object(b.b)("p",null,Object(b.b)("inlineCode",{parentName:"p"},"2 % 3")," \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 2"),Object(b.b)("p",null,Object(b.b)("inlineCode",{parentName:"p"},"4 % 2")," \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 0"),Object(b.b)("p",null,Object(b.b)("inlineCode",{parentName:"p"},"5.5 % 2")," \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 1.5"),Object(b.b)("p",null,"\u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0432\u0441\u0435 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u044b\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0432 ",Object(b.b)("inlineCode",{parentName:"p"},"LIVE EDITOR"),":"),Object(b.b)("pre",null,Object(b.b)("code",Object(a.a)({parentName:"pre"},{className:"language-jsx",metastring:"live",live:!0}),"function learnJavaScript() {\n let modulo = 12 % 5\n return modulo\n}\n")),Object(b.b)("h2",{id:"\u043e\u043a\u0440\u0443\u0433\u043b\u0435\u043d\u0438\u0435"},"\u041e\u043a\u0440\u0443\u0433\u043b\u0435\u043d\u0438\u0435"),Object(b.b)("p",null,"\u041c\u0435\u0442\u043e\u0434 ",Object(b.b)("inlineCode",{parentName:"p"},"Math.round()")," \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0447\u0438\u0441\u043b\u043e, \u043e\u043a\u0440\u0443\u0433\u043b\u0451\u043d\u043d\u043e\u0435 \u043a \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u043c\u0443 \u0446\u0435\u043b\u043e\u043c\u0443. \u0415\u0441\u043b\u0438 \u0434\u0440\u043e\u0431\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0447\u0438\u0441\u043b\u0430 \u0431\u043e\u043b\u044c\u0448\u0435, \u043b\u0438\u0431\u043e \u0440\u0430\u0432\u043d\u0430 0,5, \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u0431\u0443\u0434\u0435\u0442 \u043e\u043a\u0440\u0443\u0433\u043b\u0451\u043d \u0434\u043e \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u0433\u043e \u0431\u043e\u043b\u044c\u0448\u0435\u0433\u043e \u0446\u0435\u043b\u043e\u0433\u043e. \u0415\u0441\u043b\u0438 \u0434\u0440\u043e\u0431\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0447\u0438\u0441\u043b\u0430 \u043c\u0435\u043d\u044c\u0448\u0435 0,5, \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u0431\u0443\u0434\u0435\u0442 \u043e\u043a\u0440\u0443\u0433\u043b\u0451\u043d \u0434\u043e \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u0433\u043e \u043c\u0435\u043d\u044c\u0448\u0435\u0433\u043e \u0446\u0435\u043b\u043e\u0433\u043e."),Object(b.b)("p",null,Object(b.b)("inlineCode",{parentName:"p"},"result = Math.round(20.49)")," \u0412\u0435\u0440\u043d\u0451\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 20"),Object(b.b)("p",null,Object(b.b)("inlineCode",{parentName:"p"},"result = Math.round(20.5)")," \u0412\u0435\u0440\u043d\u0451\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 21"),Object(b.b)("p",null,"\u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0441\u0430\u043c\u0438:"),Object(b.b)("pre",null,Object(b.b)("code",Object(a.a)({parentName:"pre"},{className:"language-jsx",metastring:"live",live:!0}),"function learnJavaScript() {\n let result = Math.round(20.49)\n return result\n}\n")),Object(b.b)("h2",{id:"\u0432\u043e\u043f\u0440\u043e\u0441\u044b"},"\u0412\u043e\u043f\u0440\u043e\u0441\u044b:"),Object(b.b)("p",null,Object(b.b)("img",Object(a.a)({parentName:"p"},{src:"https://media.giphy.com/media/l0HlRnAWXxn0MhKLK/giphy.gif",alt:"Question"}))),Object(b.b)("p",null,"\u0414\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043d\u044f\u0442\u044c, \u043d\u0430 \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u044b \u0443\u0441\u0432\u043e\u0438\u043b\u0438 \u044d\u0442\u043e\u0442 \u0443\u0440\u043e\u043a, \u043f\u0440\u043e\u0439\u0434\u0438\u0442\u0435 \u0442\u0435\u0441\u0442 \u0432 ",Object(b.b)("a",Object(a.a)({parentName:"p"},{href:"http://onelink.to/njhc95"}),"\u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438")," \u043d\u0430\u0448\u0435\u0439 \u0448\u043a\u043e\u043b\u044b \u043f\u043e \u044d\u0442\u043e\u0439 \u0442\u0435\u043c\u0435."),Object(b.b)("p",null,Object(b.b)("img",{alt:"Sumerian school",src:n(176).default})),Object(b.b)("h2",{id:"\u0441\u0441\u044b\u043b\u043a\u0438"},"\u0421\u0441\u044b\u043b\u043a\u0438:"),Object(b.b)("ol",null,Object(b.b)("li",{parentName:"ol"},Object(b.b)("a",Object(a.a)({parentName:"li"},{href:"https://developer.mozilla.org/ru/docs/Web/JavaScript/Guide/Numbers_and_dates"}),"MDN web docs")),Object(b.b)("li",{parentName:"ol"},Object(b.b)("a",Object(a.a)({parentName:"li"},{href:"https://www.amazon.com/Code-Teens-Beginners-Programming-Javascript-ebook/dp/B07FCTLVPC"}),"\u041a\u043e\u0434 \u0434\u043b\u044f \u043f\u043e\u0434\u0440\u043e\u0441\u0442\u043a\u043e\u0432: \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e\u0435 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e \u0434\u043b\u044f \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0445, \u0442\u043e\u043c 1: Javascript - Jeremy Moritz ")),Object(b.b)("li",{parentName:"ol"},Object(b.b)("a",Object(a.a)({parentName:"li"},{href:"https://learn.javascript.ru/number"}),"JavaScript.ru")),Object(b.b)("li",{parentName:"ol"},Object(b.b)("a",Object(a.a)({parentName:"li"},{href:"https://maths-public.ru/arithmetic/actions"}),"\u0410\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441 \u0446\u0435\u043b\u044b\u043c\u0438 \u0447\u0438\u0441\u043b\u0430\u043c\u0438"))),Object(b.b)("h2",{id:"contributors-"},"Contributors \u2728"),Object(b.b)("p",null,"Thanks goes to these wonderful people (",Object(b.b)("a",Object(a.a)({parentName:"p"},{href:"https://allcontributors.org/docs/en/emoji-key"}),"emoji key"),"):"),Object(b.b)("table",null,Object(b.b)("tr",null,Object(b.b)("td",{align:"center"},Object(b.b)("a",{href:"https://fullstackserverless.github.io/"},Object(b.b)("img",{src:"https://avatars0.githubusercontent.com/u/6774813?v=4?s=200",width:"200px;",alt:""}),Object(b.b)("br",null),Object(b.b)("sub",null,Object(b.b)("b",null,"Dmitriy Vasilev"))),Object(b.b)("br",null)," ",Object(b.b)("a",{href:"https://github.com/gHashTag/react-native-village/commits?author=gHashTag",title:"Documentation"},"\ud83d\udcd6"),Object(b.b)("a",{href:"#financial-gHashTag",title:"Financial"},"\ud83d\udcb5")),Object(b.b)("td",{align:"center"},Object(b.b)("a",{href:"https://github.com/Resoner2005"},Object(b.b)("img",{src:"https://avatars1.githubusercontent.com/u/75675814?v=4?s=200",width:"200px;",alt:""}),Object(b.b)("br",null),Object(b.b)("sub",null,Object(b.b)("b",null,"Resoner2005"))),Object(b.b)("br",null),Object(b.b)("a",{href:"https://github.com/gHashTag/react-native-village/issues?q=author%3AResoner2005",title:"Bug reports"},"\ud83d\udc1b \ud83c\udfa8 \ud83d\udd8b")))),Object(b.b)("p",null,Object(b.b)("a",Object(a.a)({parentName:"p"},{href:"https://www.patreon.com/bePatron?u=31769291"}),Object(b.b)("img",{alt:"Become a Patron!",src:n(175).default}))))}o.isMDXComponent=!0},174:function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return O}));var a=n(0),r=n.n(a);function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},b=Object.keys(e);for(a=0;a<b.length;a++)n=b[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(e);for(a=0;a<b.length;a++)n=b[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var p=r.a.createContext({}),o=function(e){var t=r.a.useContext(p),n=t;return e&&(n="function"==typeof e?e(t):l(l({},t),e)),n},u=function(e){var t=o(e.components);return r.a.createElement(p.Provider,{value:t},e.children)},j={inlineCode:"code",wrapper:function(e){var t=e.children;return r.a.createElement(r.a.Fragment,{},t)}},s=r.a.forwardRef((function(e,t){var n=e.components,a=e.mdxType,b=e.originalType,c=e.parentName,p=i(e,["components","mdxType","originalType","parentName"]),u=o(n),s=a,O=u["".concat(c,".").concat(s)]||u[s]||j[s]||b;return n?r.a.createElement(O,l(l({ref:t},p),{},{components:n})):r.a.createElement(O,l({ref:t},p))}));function O(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var b=n.length,c=new Array(b);c[0]=s;var l={};for(var i in t)hasOwnProperty.call(t,i)&&(l[i]=t[i]);l.originalType=e,l.mdxType="string"==typeof e?e:a,c[1]=l;for(var p=2;p<b;p++)c[p]=n[p];return r.a.createElement.apply(null,c)}return r.a.createElement.apply(null,n)}s.displayName="MDXCreateElement"},175:function(e,t,n){"use strict";n.r(t),t.default=n.p+"assets/images/patreon-15b4e66595efdb2e079faf18b89cff7c.png"},176:function(e,t,n){"use strict";n.r(t),t.default=n.p+"assets/images/app-b1ad811d205d35252340669e9e1f7545.png"}}]);