{"id":32769,"date":"2019-10-31T21:48:48","date_gmt":"2019-10-31T18:48:48","guid":{"rendered":"https:\/\/prohoster.info\/blog\/oops-i-did-it-again-otladka-rasprostranennyh-oshibok-v-javascript\/"},"modified":"2019-10-31T21:48:48","modified_gmt":"2019-10-31T18:48:48","slug":"oops-i-did-it-again-otladka-rasprostranennyh-oshibok-v-javascript","status":"publish","type":"post","link":"https:\/\/prohoster.info\/hu\/blog\/news\/oops-i-did-it-again-otladka-rasprostranennyh-oshibok-v-javascript","title":{"rendered":"Oops, I did it again: a gyakori JavaScript hib\u00e1k hibakeres\u00e9se.","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p><img decoding=\"async\" alt=\"Oops, I did it again: a gyakori JavaScript hib\u00e1k hibakeres\u00e9se.\" src=\"\/wp-content\/uploads\/2019\/04\/1d3b45a6cf245d9f55f5a69c9b477d88.jpg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n <br \/>\nN\u00e9ha a JavaScript k\u00f3d \u00edr\u00e1sa neh\u00e9zs\u00e9gekbe \u00fctk\u00f6zik, \u00e9s egyes esetekben meg is ijeszt, amit sok fejleszt\u0151 ismer. A munka sor\u00e1n elker\u00fclhetetlen\u00fcl hib\u00e1k l\u00e9pnek fel, r\u00e1ad\u00e1sul ezek k\u00f6z\u00fcl n\u00e9h\u00e1ny gyakran ism\u00e9tl\u0151dik. A kezd\u0151 fejleszt\u0151k sz\u00e1m\u00e1ra k\u00e9sz\u00fclt cikk foglalkozik ezekkel a hib\u00e1kkal \u00e9s azok megold\u00e1si lehet\u0151s\u00e9geivel. A funkci\u00f3k, tulajdons\u00e1gok \u00e9s objektumok nevei a <noindex><a rel=\"nofollow\" href=\"https:\/\/genius.com\/Britney-spears-lucky-lyrics\">n\u00e9pszer\u0171 dalb\u00f3l<\/a><\/noindex>. Mindez seg\u00edt gyorsan megjegyezni, hogyan kell kijav\u00edtani a gyakori hib\u00e1kat. <br \/>\n<noindex><a rel=\"nofollow\" name=\"habracut\"><\/a><\/noindex><\/p>\n<blockquote><p><b>Eml\u00e9keztetj\u00fck:<\/b> <i>minden \u00abHabr\u00bb olvas\u00f3nak 10 000 rubeles kedvezm\u00e9ny j\u00e1r b\u00e1rmely Skillbox kurzus jelentkez\u00e9sekor a \u00abHabr\u00bb prom\u00f3ci\u00f3s k\u00f3d felhaszn\u00e1l\u00e1s\u00e1val.<\/i><\/p>\n<p><b>A Skillbox aj\u00e1nlja:<\/b> Gyakorlati kurzus <noindex><a rel=\"nofollow\" href=\"https:\/\/skillbox.ru\/agima\/?utm_source=skillbox.media&amp;utm_medium=habr.com&amp;utm_campaign=AGIMA&amp;utm_content=articles&amp;utm_term=oops\">\u00abMobilfejleszt\u0151 PRO\u00bb<\/a><\/noindex>.\n<\/p><\/blockquote>\n<p><\/p>\n<h3>TypeError: tulajdons\u00e1g nincs meghat\u00e1rozva<\/h3>\n<p><\/p>\n<pre><code class=\"javascript\">let girl = {\n    name: \"Lucky\",\n    location: \"Hollywood\",\n    profession: \"star\",\n    thingsMissingInHerLife: true,\n    lovely: true,\n    cry: function() {\n        return \"cry, cry, cries in her lonely heart\"\n    }\n}\nconsole.log(girl.named.lucky)<\/code><\/pre>\n<p>\nA fenti k\u00f3d p\u00e9lda Uncaught TypeError: Cannot read property \u2018lucky\u2019 of undefined hib\u00e1t ad. A probl\u00e9ma az, hogy a girl objektumnak nincs named tulajdons\u00e1ga, b\u00e1r a name tulajdons\u00e1ga l\u00e9tezik. Mivel a girl.named tulajdons\u00e1g nincs meghat\u00e1rozva, nem lehet hozz\u00e1f\u00e9rni, mert form\u00e1lisan nem l\u00e9tezik. De ha a girl.named.lucky-t girl.name-ra cser\u00e9lj\u00fck, minden m\u0171k\u00f6dni fog, \u00e9s a program visszaadja a Lucky-t.<\/p>\n<p>Tov\u00e1bbi inform\u00e1ci\u00f3 a tulajdons\u00e1gokr\u00f3l <noindex><a rel=\"nofollow\" href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/JavaScript\/Guide\/Working_with_Objects\">olvashatsz<\/a><\/noindex>.<\/p>\n<h3>A TypeError hib\u00e1k elh\u00e1r\u00edt\u00e1s\u00e1nak m\u00f3djai<\/h3>\n<p>\nA TypeError hib\u00e1k akkor jelennek meg, amikor a programoz\u00f3 olyan adatokkal pr\u00f3b\u00e1l m\u0171veleteket v\u00e9grehajtani, amelyek nem felelnek meg egy adott t\u00edpusnak. P\u00e9ldak\u00e9nt lehet eml\u00edteni a .bold() alkalmaz\u00e1s\u00e1t, az undefined tulajdons\u00e1g lek\u00e9r\u00e9s\u00e9t vagy egy olyan funkci\u00f3 megh\u00edv\u00e1s\u00e1t, amely val\u00f3j\u00e1ban nem is funkci\u00f3.<\/p>\n<p>P\u00e9ld\u00e1ul, ha megpr\u00f3b\u00e1ljuk megh\u00edvni a girl-t (), akkor a hiba Uncaught TypeError: yourVariable.bold is not a function \u00e9s girl is not a function hib\u00e1k jelennek meg, mivel val\u00f3j\u00e1ban egy objektumot h\u00edvunk meg, nem pedig egy funkci\u00f3t.<\/p>\n<p>A hib\u00e1k elh\u00e1r\u00edt\u00e1s\u00e1hoz meg kell vizsg\u00e1lni a v\u00e1ltoz\u00f3kat. Mi az a girl? Mi az a girl.named? Ezt \u00fagy tudhatjuk meg, ha elemezz\u00fck a k\u00f3dot, a console.log seg\u00edts\u00e9g\u00e9vel ki\u00edratjuk a v\u00e1ltoz\u00f3kat, debugger parancsot haszn\u00e1lunk, vagy a v\u00e1ltoz\u00f3 nev\u00e9t a konzolban h\u00edvjuk meg. Biztos\u00edtanunk kell, hogy lehet\u0151s\u00e9g\u00fcnk legyen a v\u00e1ltoz\u00f3ban t\u00e1rolt adatok t\u00edpus\u00e1val m\u0171veleteket v\u00e9gezni. Ha az nem megfelel\u0151, m\u00f3dos\u00edtsuk, p\u00e9ld\u00e1ul adjunk hozz\u00e1 egy felt\u00e9telt vagy try..catch blokkot \u2014 \u00e9s \u00edgy ellen\u0151rz\u00e9st nyer\u00fcnk a m\u0171velet v\u00e9grehajt\u00e1sa felett.<\/p>\n<h3>Verem t\u00falcsordul\u00e1s<\/h3>\n<p>\nHa elhissz\u00fck a Baby One More Time c\u00edm\u0171 dal szerz\u0151inek (igen, ez Britney Spears), akkor a hit sz\u00f3 ebben az \u00f6sszef\u00fcgg\u00e9sben a dal \u00e9nekesn\u0151j\u00e9nek v\u00e1gy\u00e1t jelenti, hogy ism\u00e9t h\u00edvj\u00e1k (ez itt a dal kontextus\u00e1nak magyar\u00e1zata \u2014 a ford\u00edt\u00f3 megjegyz\u00e9se). Lehets\u00e9ges, hogy ez a v\u00e1gy a val\u00f3 \u00e9letben n\u00f6veli a h\u00edv\u00e1sok sz\u00e1m\u00e1t. De a programoz\u00e1sban ez rekurzi\u00f3, amely hiba\u00fczenetet okozhat a h\u00edv\u00e1si verem t\u00falcsordul\u00e1sakor.<\/p>\n<p>A hib\u00e1k a k\u00f6vetkez\u0151k\u00e9ppen n\u00e9znek ki:<\/p>\n<p><i>Hiba: Nincs hely a veremben (Edge)<br \/>\nInternalError: t\u00falzott rekurzi\u00f3 (Firefox)<br \/>\nRangeError: A maxim\u00e1lis h\u00edv\u00e1si verem m\u00e9rete t\u00fall\u00e9pve (Chrome)<br \/>\n <\/i><br \/>\nA verem t\u00falcsordul\u00e1sa akkor fordul el\u0151, ha a fejleszt\u0151 nem vette figyelembe az alaphelyzetet a rekurzi\u00f3ban, vagy ha a k\u00f3d nem hivatkozik a megadott esetre.<\/p>\n<pre><code class=\"javascript\">function oneMoreTime(stillBelieve=true, loneliness=0) {\n    if (!stillBelieve &amp;&amp; loneliness &lt; 0) return\n    loneliness++\n    return oneMoreTime(stillBelieve, loneliness)\n}<\/code><\/pre>\n<p>\nEbben az esetben a stillBelieve soha nem lehet false, ez\u00e9rt minden alkalommal a oneMoreTime h\u00edv\u00e1sa t\u00f6rt\u00e9nik, de a f\u00fcggv\u00e9ny v\u00e9grehajt\u00e1sa soha nem fejez\u0151dik be.<\/p>\n<p>Ha k\u00e9t bar\u00e1tban kezd\u00fcnk el b\u00edzni, az cs\u00f6kkenti a loneliness (mag\u00e1ny) szintet, \u00e9s a h\u00edv\u00e1sra m\u00e1r nem is lesz sz\u00fcks\u00e9g.<\/p>\n<pre><code class=\"javascript\">function oneMoreTime(stillBelieve=true, loneliness=0) {\n    if (!stillBelieve &amp;&amp; loneliness &lt; 0) return\n    loneliness--\n    stillBelieve = false\n    return oneMoreTime(stillBelieve, loneliness)\n}<\/code><\/pre>\n<p>\nP\u00e9ldak\u00e9nt hozhat\u00f3k a v\u00e9gtelen ciklusok esetei, amikor a rendszer nem ad hiba\u00fczenetet, a JavaScript-k\u00f3dot futtat\u00f3 oldal egyszer\u0171en lelassul. Ez akkor fordul el\u0151, ha a while ciklusnak nincs befejez\u00e9si felt\u00e9tele.<\/p>\n<pre><code class=\"javascript\">let worldEnded = false\n \nwhile (worldEnded !== true) {\n  console.log(\"Keep on dancin' till the world ends\")\n}<\/code><\/pre>\n<p>\nA probl\u00e9ma megold\u00e1sa a k\u00f6vetkez\u0151k\u00e9ppen lehets\u00e9ges:<\/p>\n<pre><code class=\"javascript\">let worldEnded = false\n \nwhile (worldEnded !== true) {\n  console.log(\"Keep on dancin' till the world ends\")\n  worldEnded = true\n}<\/code><\/pre>\n<p><\/p>\n<h3>V\u00e9gtelen ciklusok \u00e9s rekurzi\u00f3k hibakeres\u00e9se<\/h3>\n<p>\nHa v\u00e9gtelen ciklussal kapcsolatos probl\u00e9ma mer\u00fcl fel, Chrome vagy Edge eset\u00e9n a lapot be kell z\u00e1rni, a Firefox eset\u00e9ben pedig a b\u00f6ng\u00e9sz\u0151ablakot. Ezt k\u00f6vet\u0151en alaposan \u00e1t kell n\u00e9zni a k\u00f3dot. Ha nem tal\u00e1ljuk a probl\u00e9m\u00e1t, \u00e9rdemes a debugger parancsot hozz\u00e1adni a ciklushoz vagy a f\u00fcggv\u00e9nyhez, \u00e9s ellen\u0151rizni a v\u00e1ltoz\u00f3k \u00e9rt\u00e9k\u00e9t. Ha az eredm\u00e9ny nem felel meg a v\u00e1rtnak, azt k\u00f6nnyen ki lehet cser\u00e9lni.<\/p>\n<p>A fenti p\u00e9ld\u00e1ban a debuggert a f\u00fcggv\u00e9ny vagy ciklus els\u0151 sor\u00e1ba kell beilleszteni. Ezt k\u00f6vet\u0151en meg kell nyitni a debuggol\u00e1si lapot a Chrome-ban, \u00e9s elemezni a scope-ban l\u00e9v\u0151 v\u00e1ltoz\u00f3kat. A next gomb seg\u00edts\u00e9g\u00e9vel nyomon k\u00f6vethetj\u00fck a v\u00e1ltoz\u00e1saikat minden iter\u00e1ci\u00f3 sor\u00e1n. Mindez egyszer\u0171en megval\u00f3s\u00edthat\u00f3, \u00e9s a legt\u00f6bb esetben a probl\u00e9ma helyzetben rejlik.<\/p>\n<p>Err\u0151l r\u00e9szletesebben itt olvashat (<noindex><a rel=\"nofollow\" href=\"https:\/\/developers.google.com\/web\/tools\/chrome-devtools\/javascript\/\">a Chrome-hoz<\/a><\/noindex>) \u00e9s itt (<noindex><a rel=\"nofollow\" href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Tools\/Debugger\">a Firefoxhoz<\/a><\/noindex>).<\/p>\n<h3>Szintaktikai hiba<\/h3>\n<p>\nAz egyik leggyakoribb hiba a JavaScript-ben a SyntaxError. Ezek elker\u00fcl\u00e9s\u00e9ben seg\u00edthetnek a sz\u00f6vegszerkeszt\u0151 b\u0151v\u00edtm\u00e9nyek. \u00cdgy p\u00e9ld\u00e1ul a Bracket Pair Colorizer k\u00fcl\u00f6nb\u00f6z\u0151 sz\u00ednekkel jel\u00f6li a k\u00f3d z\u00e1r\u00f3jeleit, m\u00edg a Prettier vagy hasonl\u00f3 elemz\u0151eszk\u00f6z lehet\u0151v\u00e9 teszi a gyors hibaellen\u0151rz\u00e9st. A legjobb megold\u00e1s a SyntaxError val\u00f3sz\u00edn\u0171s\u00e9g\u00e9nek cs\u00f6kkent\u00e9s\u00e9re a minim\u00e1lis be\u00e1gyaz\u00e1s.<\/p>\n<p>Ossza meg a megjegyz\u00e9sekben: mit tesz az\u00e9rt, hogy elker\u00fclje a hib\u00e1kat, vagy hogyan fedezi fel \u00e9s sz\u00fcnteti meg \u0151ket gyorsan?<\/p>\n<blockquote><p><b>A Skillbox aj\u00e1nlja:<\/b><\/p>\n<ul>\n<li>K\u00e9t\u00e9ves gyakorlati tanfolyam <noindex><a rel=\"nofollow\" href=\"https:\/\/iamwebdev.skillbox.ru\/?utm_source=skillbox.media&amp;utm_medium=habr.com&amp;utm_campaign=WEBDEVPRO&amp;utm_content=articles&amp;utm_term=oops\">\u201eWebfejleszt\u0151 PRO\u201d<\/a><\/noindex>.<\/li>\n<li>Online kurzus <noindex><a rel=\"nofollow\" href=\"https:\/\/skillbox.ru\/c-sharp\/?utm_source=skillbox.media&amp;utm_medium=habr.com&amp;utm_campaign=CSHDEV&amp;utm_content=articles&amp;utm_term=oops\">\u201eC#-fejleszt\u0151 0-r\u00f3l\u201d<\/a><\/noindex>.<\/li>\n<li>Gyakorlati \u00e9ves kurzus <noindex><a rel=\"nofollow\" href=\"https:\/\/skillbox.ru\/php\/?utm_source=skillbox.media&amp;utm_medium=habr.com&amp;utm_campaign=PHPDEV&amp;utm_content=articles&amp;utm_term=oops\">\u201ePHP fejleszt\u0151 a null\u00e1t\u00f3l a PROig\u201d<\/a><\/noindex>.\n<\/li>\n<\/ul>\n<\/blockquote>\n<p>Forr\u00e1s: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/skillbox\/blog\/450194\/\">habr.com<\/a><\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u041f\u043e\u0440\u043e\u0439 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043a\u043e\u0434\u0430 JavaScript \u0434\u0430\u0435\u0442\u0441\u044f \u0441\u043b\u043e\u0436\u043d\u043e, \u0430 \u0438\u043d\u043e\u0433\u0434\u0430 \u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0443\u0433\u0430\u0435\u0442, \u0447\u0442\u043e \u0437\u043d\u0430\u043a\u043e\u043c\u043e \u043c\u043d\u043e\u0433\u0438\u043c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c. \u0412 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0435\u0438\u0437\u0431\u0435\u0436\u043d\u043e \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u044e\u0442 \u043e\u0448\u0438\u0431\u043a\u0438, \u043f\u0440\u0438\u0447\u0435\u043c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0437 \u043d\u0438\u0445 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u044e\u0442\u0441\u044f \u0447\u0430\u0441\u0442\u0435\u043d\u044c\u043a\u043e. \u0412 \u0441\u0442\u0430\u0442\u044c\u0435, \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043d\u043d\u043e\u0439 \u043d\u0430 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0445 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432, \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043e\u0431 \u044d\u0442\u0438\u0445 \u043e\u0448\u0438\u0431\u043a\u0430\u0445 \u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u0445 \u0438\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u044f. \u0414\u043b\u044f \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e\u0441\u0442\u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0439, \u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0432\u0437\u044f\u0442\u044b \u0438\u0437 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u043e\u0439 \u043f\u0435\u0441\u043d\u0438. \u0412\u0441\u0435 \u044d\u0442\u043e \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":24548,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[702],"tags":[],"class_list":["post-32769","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.3 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u041f\u043e\u0440\u043e\u0439 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043a\u043e\u0434\u0430.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/hu\/blog\/news\/oops-i-did-it-again-otladka-rasprostranennyh-oshibok-v-javascript\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.3\" \/>\n\t\t<meta property=\"og:locale\" content=\"hu_HU\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47Oops, I did it again: \u043e\u0442\u043b\u0430\u0434\u043a\u0430 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u043d\u044b\u0445 \u043e\u0448\u0438\u0431\u043e\u043a \u0432 JavaScript | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u041f\u043e\u0440\u043e\u0439 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043a\u043e\u0434\u0430.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/hu\/blog\/news\/oops-i-did-it-again-otladka-rasprostranennyh-oshibok-v-javascript\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2019-10-31T18:48:48+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2019-10-31T18:48:48+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47Oops, megint megtettem: a gyakori hib\u00e1k debuggol\u00e1sa JavaScript-ben | ProHoster","description":"N\u00e9ha a k\u00f3d meg\u00edr\u00e1sa.","canonical_url":"https:\/\/prohoster.info\/hu\/blog\/news\/oops-i-did-it-again-otladka-rasprostranennyh-oshibok-v-javascript","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"hu_HU","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47Oops, I did it again: \u043e\u0442\u043b\u0430\u0434\u043a\u0430 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u043d\u044b\u0445 \u043e\u0448\u0438\u0431\u043e\u043a \u0432 JavaScript | ProHoster","og:description":"\u041f\u043e\u0440\u043e\u0439 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043a\u043e\u0434\u0430.","og:url":"https:\/\/prohoster.info\/hu\/blog\/news\/oops-i-did-it-again-otladka-rasprostranennyh-oshibok-v-javascript","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2019-10-31T18:48:48+00:00","article:modified_time":"2019-10-31T18:48:48+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"32769","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":"2026-01-21 12:28:19","breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-03-01 02:52:26","updated":"2026-01-21 12:28:19","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/posts\/32769","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/comments?post=32769"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/posts\/32769\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/media\/24548"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/media?parent=32769"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/categories?post=32769"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/tags?post=32769"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}