{"id":1387,"date":"2024-09-20T11:17:45","date_gmt":"2024-09-20T14:17:45","guid":{"rendered":"https:\/\/desvendandoocodigo.com.br\/?p=1387"},"modified":"2024-09-20T11:19:20","modified_gmt":"2024-09-20T14:19:20","slug":"resumo-da-live-tiktok-20-09-2024","status":"publish","type":"post","link":"https:\/\/desvendandoocodigo.com.br\/?p=1387","title":{"rendered":"Resumo da Live TikTok 20\/09\/2024"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Ol\u00e1 Pessoal! <\/h2>\n\n\n\n<p>Na Live do dia 20\/09\/2024  estudamos o la\u00e7o for e alguns m\u00e9todos relacionados.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>FOR\n\nfor(var cont = 1 ;cont &lt;= 5; cont ++){\n\n  console.log('Etapa: ', cont);\n\n}\nTABUADA\n\nvar tabuada = 5;\nvar contador = 1;\n\nfor(contador; contador&lt;=5; contador ++){\nvar total = tabuada * contador;\n\nconsole.log(contador + ' x ' + tabuada +\n    ' = '+ total);\n\n}\nMAP\n\nconst numeros = &#91;1,2,3,4,5];\nconst dobrados = &#91;]; \nfor(var cont = 0 ; cont &lt; numeros.length;\n     cont ++ ){\ndobrados.push(numeros&#91;cont] * 2);\n}\nconsole.log('Resultado com for ', dobrados);\n\nconsole.log('*************************');\n\nconst numeros2 = &#91;1,2,3,4,5];\nconst dobrados2 = numeros2.map(numero =&gt; numero * 2)\nconsole.log('Resultado com map ', dobrados2);\n\nFILTER\n\nconst numeros = &#91;1,2,3,4,5,6];\n\nconst pares = &#91;];\nfor(var i = 0; i &lt; numeros.length; i ++ ){\n    if( numeros&#91;i] % 2 === 0){\n        pares.push(numeros&#91;i])\n    }\n}\nconsole.log('resultado com for ', pares);\nconsole.log('**************************')\n\nconst numeros2 = &#91;1,2,3,4,5,6];\n\nconst pares2 =\n numeros2.filter(numero =&gt; numero % 2 === 0);\nconsole.log('resultado com filter ', pares2);\n\n\nFOREACH\nconst numeros = &#91;1,2,3,4,5];\n\nfunction mult(valor){\n\n    return console.log(valor * 5);\n}\nnumeros.forEach(mult);\n\nANOTACOES\n\nfunction somar(a,b){\n\nreturn a + b;\nconsole.log('processando ...');\n}\nconsole.log(somar(5, 5));\n\n\n\nvar a = 10;\nvar b = \"10\";\n\nconsole.log( a === b );\n\n\n\n<\/code><\/pre>\n\n\n\n<p><\/p>\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<h2 class=\"wp-block-heading\"><strong>HOR\u00c1RIO DAS LIVES<\/strong><\/h2>\n\n\n\n<p>Domingo &#8211; Segunda e Quarta \u00e0s 19:00hs<\/p>\n\n\n\n<p>Quinta &#8211; Sexta e S\u00e1bado \u00e0s 10:00hs<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"558\" height=\"1024\" src=\"https:\/\/desvendandoocodigo.com.br\/wp-content\/uploads\/2024\/07\/image-4.png\" alt=\"\" class=\"wp-image-1144\" style=\"width:242px;height:auto\" srcset=\"https:\/\/desvendandoocodigo.com.br\/wp-content\/uploads\/2024\/07\/image-4.png 558w, https:\/\/desvendandoocodigo.com.br\/wp-content\/uploads\/2024\/07\/image-4-163x300.png 163w\" sizes=\"(max-width: 558px) 100vw, 558px\" \/><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ol\u00e1 Pessoal! Na Live do dia 20\/09\/2024 estudamos o la\u00e7o for e alguns m\u00e9todos relacionados. https:\/\/go.hotmart.com\/V89811082M?dp=1 https:\/\/go.hotmart.com\/X90111663X?dp=1 HOR\u00c1RIO DAS LIVES Domingo &#8211; Segunda e Quarta \u00e0s 19:00hs Quinta &#8211; Sexta e S\u00e1bado \u00e0s 10: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\/1387"}],"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=1387"}],"version-history":[{"count":2,"href":"https:\/\/desvendandoocodigo.com.br\/index.php?rest_route=\/wp\/v2\/posts\/1387\/revisions"}],"predecessor-version":[{"id":1390,"href":"https:\/\/desvendandoocodigo.com.br\/index.php?rest_route=\/wp\/v2\/posts\/1387\/revisions\/1390"}],"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=1387"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/desvendandoocodigo.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1387"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/desvendandoocodigo.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1387"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}