{"id":1419,"date":"2024-10-03T11:17:05","date_gmt":"2024-10-03T14:17:05","guid":{"rendered":"https:\/\/desvendandoocodigo.com.br\/?p=1419"},"modified":"2024-10-05T21:59:06","modified_gmt":"2024-10-06T00:59:06","slug":"resumo-da-live-tiktok-03-10-2024","status":"publish","type":"post","link":"https:\/\/desvendandoocodigo.com.br\/?p=1419","title":{"rendered":"Resumo da Live TikTok 03\/10\/2024"},"content":{"rendered":"\n<p>Ol\u00e1 Pessoal! <\/p>\n\n\n\n<p>Na Live do dia 03\/10\/2024  estudamos os algoritmos mais utilizados para quem est\u00e1 come\u00e7ando na programa\u00e7\u00e3o.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>INDEXOF\n\nconst numeros = &#91;10,20,30,40,50];\n\nconsole.log(numeros.indexOf(30));\n\n\nFINDINDEX\n\nconst pessoas = &#91;\n\n    {\n        nome:\"Alice\",\n        idade: 25,\n        cidade: \"Rio de Janeiro\",\n        interesses:&#91;\"musica\", \"filmes\", \"viajar\" ]\n    },\n    {\n        nome:\"jo\u00e3o\",\n        idade: 15,\n        cidade: \"Sao Paulo\",\n        interesses:&#91;\"natacao\", \"filmes\", \"livros\" ]\n    }\n ]\n\/\/ const index = pessoas.findIndex( function(pessoa){\n\/\/     return pessoa.cidade === \"Rio de Janeiro\"\n\/\/ } );\n\nconst index =  pessoas.findIndex( pessoa =&gt;\n     pessoa.cidade === \"Rio de Janeiro\");\n\nconsole.log(index);\n\n\n\nESTOQUE\n\nconst produtos = &#91;\n    { nome:\" Teclado \", quantidade: 15 },\n    { nome:\" Mouse \", quantidade: 8 },\n    { nome:\" Monitor \", quantidade: 12 },\n    { nome:\" Cadeira \", quantidade: 6 },\n ];\n\n \/\/CRIAR FILTRO PARA LISTAR ESTOQUE ABAIXO DE 10\n\n const estoqueBaixo = produtos\n .filter( produto =&gt; produto.quantidade &lt; 10 )\n .map( produto =&gt; (  { nome: produto.nome,\n    quantidade: produto.quantidade }));\n\n    if(estoqueBaixo.length &gt; 0){\n        console.log('Produtos abaixo de 10: ');\n\n        estoqueBaixo.forEach( (produto, index) =&gt;{ \n            console.log(`${index + 1 }. ${produto.nome}- quantidade ${produto.quantidade}` );\n          } );\n    }else{\n        console.log('N\u00e3o tem produto abaixo de 10 ');\n    }\n\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"321\" src=\"https:\/\/desvendandoocodigo.com.br\/wp-content\/uploads\/2024\/01\/hotmart.png\" alt=\"\" class=\"wp-image-162\" style=\"width:134px;height:auto\" srcset=\"https:\/\/desvendandoocodigo.com.br\/wp-content\/uploads\/2024\/01\/hotmart.png 1000w, https:\/\/desvendandoocodigo.com.br\/wp-content\/uploads\/2024\/01\/hotmart-300x96.png 300w, https:\/\/desvendandoocodigo.com.br\/wp-content\/uploads\/2024\/01\/hotmart-768x247.png 768w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><a href=\"https:\/\/go.hotmart.com\/V89811082M?dp=1\">https:\/\/go.hotmart.com\/V89811082M?dp=1<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/go.hotmart.com\/X90111663X?dp=1\">https:\/\/go.hotmart.com\/X90111663X?dp=1<\/a><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>HOR\u00c1RIO DAS LIVES<\/strong><\/p>\n\n\n\n<p>Domingo e Segunda \u00e0s 19:00hs<\/p>\n\n\n\n<p>Quarta \u00e0s 18:00hs<\/p>\n\n\n\n<p>Quinta e Sexta \u00e0s 10:00hs<\/p>\n\n\n\n<p> S\u00e1bado \u00e0s 20:00hs<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Programa\u00e7\u00e3o do zero ao avan\u00e7ado |  #cursodejavascript\" width=\"960\" height=\"540\" src=\"https:\/\/www.youtube.com\/embed\/m5WLUQAZ0vA?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Ol\u00e1 Pessoal! Na Live do dia 03\/10\/2024 estudamos os algoritmos mais utilizados para quem est\u00e1 come\u00e7ando na programa\u00e7\u00e3o. https:\/\/go.hotmart.com\/V89811082M?dp=1 https:\/\/go.hotmart.com\/X90111663X?dp=1 HOR\u00c1RIO DAS LIVES Domingo e Segunda \u00e0s 19:00hs Quarta \u00e0s 18:00hs Quinta e Sexta \u00e0s 10:00hs S\u00e1bado \u00e0s 20:00hs<\/p>\n","protected":false},"author":1,"featured_media":1097,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[18],"tags":[],"_links":{"self":[{"href":"https:\/\/desvendandoocodigo.com.br\/index.php?rest_route=\/wp\/v2\/posts\/1419"}],"collection":[{"href":"https:\/\/desvendandoocodigo.com.br\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/desvendandoocodigo.com.br\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/desvendandoocodigo.com.br\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/desvendandoocodigo.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1419"}],"version-history":[{"count":3,"href":"https:\/\/desvendandoocodigo.com.br\/index.php?rest_route=\/wp\/v2\/posts\/1419\/revisions"}],"predecessor-version":[{"id":1431,"href":"https:\/\/desvendandoocodigo.com.br\/index.php?rest_route=\/wp\/v2\/posts\/1419\/revisions\/1431"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/desvendandoocodigo.com.br\/index.php?rest_route=\/wp\/v2\/media\/1097"}],"wp:attachment":[{"href":"https:\/\/desvendandoocodigo.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1419"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/desvendandoocodigo.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1419"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/desvendandoocodigo.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1419"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}