{"id":1109,"date":"2024-07-10T21:12:04","date_gmt":"2024-07-11T00:12:04","guid":{"rendered":"https:\/\/desvendandoocodigo.com.br\/?p=1109"},"modified":"2024-07-12T20:50:01","modified_gmt":"2024-07-12T23:50:01","slug":"resumo-da-live-tiktok-10072024","status":"publish","type":"post","link":"https:\/\/desvendandoocodigo.com.br\/?p=1109","title":{"rendered":"Resumo da Live TikTok 10072024"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Ol\u00e1 Pessoal!<\/h2>\n\n\n\n<h2 class=\"wp-block-heading\">Na Live do dia 10\/07\/2024 foram abordados os seguintes temas:<\/h2>\n\n\n\n<ul>\n<li>La\u00e7o de Repeti\u00e7\u00e3o For, While e do-While;<\/li>\n\n\n\n<li>Condicional,  composta e aninhada;<\/li>\n\n\n\n<li>Estrutura de decis\u00e3o Switch Case;<\/li>\n\n\n\n<li>Eventos<\/li>\n\n\n\n<li>alert();<\/li>\n\n\n\n<li>prompt(); <\/li>\n\n\n\n<li>document.write();<\/li>\n\n\n\n<li>Sintaxe para interpola\u00e7\u00e3o;<\/li>\n\n\n\n<li>Exerc\u00edcios.<\/li>\n<\/ul>\n\n\n\n<p>Seguem os c\u00f3digos estudados durante a Live:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>revisao.js\n<\/strong>\nvar nome = 'Marcos';\nvar idade = 43;\n\n\/\/ console.log( 'Meu nome \u00e9: ' + nome +  idade);\nconsole.log(`Meu nome \u00e9: ${nome}` );\n\n\n\n<strong>exemploNaN.js\n<\/strong>\nvar nome = 'Marcos';\nvar a = 10;\n\nvar total = a - nome;\n\nconsole.log(total);\n\n\n\n<strong>dowhile.html<\/strong>\n<strong>\n<\/strong>&lt;!DOCTYPE html&gt;\n&lt;html lang=\"en\"&gt;\n&lt;head&gt;\n    &lt;meta charset=\"UTF-8\"&gt;\n    &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"&gt;\n    &lt;title&gt;Do While&lt;\/title&gt;\n&lt;\/head&gt;\n&lt;body&gt;\n    \n\n    &lt;script&gt;\n        var idade \n        \n            do{\n    idade = Number(prompt('Digite sua idade'))\n                if(idade == 0 || isNaN(idade)){\n                alert('Digite um n\u00ba valido');\n                }\n\n            }\n            while(idade == 0 || isNaN(idade));\n            document.write('Sua idade ' + idade)\n\n\n    &lt;\/script&gt;\n\n&lt;\/body&gt;\n&lt;\/html&gt;\n\n\n\n<strong>exercicio.html\n<\/strong>\n&lt;!DOCTYPE html&gt;\n&lt;html lang=\"pt-br\"&gt;\n&lt;head&gt;\n    &lt;meta charset=\"UTF-8\"&gt;\n    &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"&gt;\n    &lt;title&gt;Exerc\u00edcio&lt;\/title&gt;\n&lt;\/head&gt;\n&lt;body&gt;\n    &lt;script&gt;\n        var tabuada = Number(prompt('Insira um n\u00ba:'));\n        var contador = 1;\n        var total;\n\n        if(tabuada % 2 == 0){\n            LacoFor()\n        }else{\n            LacoWhile();\n        }\n\n\n\n        function LacoFor(){\n            for(contador ; \n            contador &lt; 11; contador ++ ){\n                total = contador * tabuada;\n                document.write(`${tabuada} * \n            ${contador} = ${total} &lt;br&gt;`);\n            }\n        }\n\n\n        function LacoWhile(){\n            contador = 10\n            while(contador &gt;0){\n                total = contador * tabuada; \n                document.write(`${tabuada} * \n            ${contador} = ${total} &lt;br&gt;`);\n            contador --;\n\n            }\n        }\n    &lt;\/script&gt;\n\n&lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Desvendando o Mundo da Programa\u00e7\u00e3o: Curso B\u00e1sico e Avan\u00e7ado de Algoritmos e JavaScript Exclusivo no Hotmart!<\/h2>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"321\" class=\"wp-image-162\" style=\"width: 150px;\" src=\"https:\/\/desvendandoocodigo.com.br\/wp-content\/uploads\/2024\/01\/hotmart.png\" alt=\"\" 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\" \/><\/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<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=\"Resumo da Live 10\/07\/2024 JavaScript  #cursojavascript\" width=\"960\" height=\"540\" src=\"https:\/\/www.youtube.com\/embed\/RGK56JVKVUA?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 10\/07\/2024 foram abordados os seguintes temas: Seguem os c\u00f3digos estudados durante a Live: Desvendando o Mundo da Programa\u00e7\u00e3o: Curso B\u00e1sico e Avan\u00e7ado de Algoritmos e JavaScript Exclusivo no Hotmart! https:\/\/go.hotmart.com\/V89811082M?dp=1 https:\/\/go.hotmart.com\/X90111663X?dp=1<\/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\/1109"}],"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=1109"}],"version-history":[{"count":4,"href":"https:\/\/desvendandoocodigo.com.br\/index.php?rest_route=\/wp\/v2\/posts\/1109\/revisions"}],"predecessor-version":[{"id":1113,"href":"https:\/\/desvendandoocodigo.com.br\/index.php?rest_route=\/wp\/v2\/posts\/1109\/revisions\/1113"}],"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=1109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/desvendandoocodigo.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1109"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/desvendandoocodigo.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}