{"id":1257,"date":"2024-08-19T20:50:59","date_gmt":"2024-08-19T23:50:59","guid":{"rendered":"https:\/\/desvendandoocodigo.com.br\/?p=1257"},"modified":"2024-08-21T23:12:06","modified_gmt":"2024-08-22T02:12:06","slug":"resumo-da-live-tiktok-19082024","status":"publish","type":"post","link":"https:\/\/desvendandoocodigo.com.br\/?p=1257","title":{"rendered":"Resumo da Live TikTok 19082024"},"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 19\/08\/2024 foram abordados os seguintes temas:<\/h2>\n\n\n\n<ul>\n<li>Condicionais Simples, Composta e Aninhada;<\/li>\n\n\n\n<li>La\u00e7o For e While;<\/li>\n\n\n\n<li>Estrutura Case;<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>LA\u00c7O FOR\nvar tabuada = 5; \nvar contador = 1;\n\nfor(contador; contador &lt; 11; contador++){    \n    var total = tabuada * contador;\n    console.log(tabuada + ' X ' \n        + contador + ' = ' + total);\n    }\n\n\nLA\u00c7O WHILE\n\/\/ var a = 1;\n\n\/\/ while(a &lt;= 10){ \n\/\/     console.log('Etapa ' + a);\n\/\/     a ++;\n\/\/ }\n\n\nvar a = 10;\nwhile(a &gt;= 1){ \n    console.log('Etapa ' + a);\n    a --;\n}\n\nCONDICIONAL\n\/\/ if( condicao ){  \/\/falso\n\/\/  \/\/bloco de comandos \n\/\/ }else if(condicao){\n\/\/     \/\/bloco de comandos \n\/\/ }else{\n\/\/     \/\/bloco de comandos\n\/\/ }\n\nvar hora = 19;\n\nif(hora &lt;= 12){\n    console.log('Bom dia');\n}else if(hora &gt; 12 &amp;&amp; hora &lt; 18){\n    console.log('Boa tarde');\n}else{\n    console.log('Boa noite');\n}\n\nEXERC\u00cdCIO\nvar tabuada = 4\nvar contador = 1;\nvar total\n\nif(tabuada % 2 == 0){ \n    for(contador; contador &lt;= 5; contador ++){\n        total = contador * tabuada;\n        console.log(tabuada + 'X' +\n            contador + ' = '  + total);\n    }\n\n}else{\n    contador = 5;\n    while(contador &gt; 0){\n        total = contador * tabuada;\n        console.log(tabuada + 'X' +\n            contador + ' = '  + total);\n            contador --;\n    }\n\n}\n\nESTRUTURA CASE\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;Estrura Case&lt;\/title&gt;\n&lt;\/head&gt;\n&lt;body&gt;\n    &lt;script&gt;\n        var tipoUsuario = \n        prompt(\"Digite o usu\u00e1rio\").toLowerCase();\n\n        var mensagem;\n\n        switch (tipoUsuario){\n            case \"admin\":\n            mensagem = \"Feliz Natal, Chefe!\";\n            break;\n\n            case \"gerente\":\n            mensagem = \"Boas festas\";\n            break;\n\n            default:\n            mensagem = \"At\u00e9 logo!!!!\"\n            break;\n        }\n\n        document.write(mensagem);\n        console.log(mensagem);\n\n    &lt;\/script&gt;\n\n\n&lt;\/body&gt;\n&lt;\/html&gt;\n\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Desvendando o Mundo da Programa\u00e7\u00e3o: Curso B\u00e1sico e Avan\u00e7ado de Algoritmos e JavaScript Exclusivo no Hotmart!<\/strong><\/h2>\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><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\">PR\u00d3XIMAS LIVES<\/h2>\n\n\n\n<p>21\/08\/2024 \u00e0s 19:00hs  <\/p>\n\n\n\n<p>22\/08\/2024 \u00e0s 10:00hs<\/p>\n\n\n\n<p>23\/08\/2024 \u00e0s 10:00hs<\/p>\n\n\n\n<p>24\/08\/2024 \u00e0s 10:00hs<\/p>\n\n\n\n<p>25\/08\/2024 \u00e0s 19: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","protected":false},"excerpt":{"rendered":"<p>Ol\u00e1 Pessoal! Na Live do dia 19\/08\/2024 foram abordados os seguintes temas: 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 PR\u00d3XIMAS LIVES 21\/08\/2024 \u00e0s 19:00hs 22\/08\/2024 \u00e0s 10:00hs 23\/08\/2024 \u00e0s 10:00hs 24\/08\/2024 \u00e0s 10:00hs 25\/08\/2024 \u00e0s 19: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\/1257"}],"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=1257"}],"version-history":[{"count":3,"href":"https:\/\/desvendandoocodigo.com.br\/index.php?rest_route=\/wp\/v2\/posts\/1257\/revisions"}],"predecessor-version":[{"id":1265,"href":"https:\/\/desvendandoocodigo.com.br\/index.php?rest_route=\/wp\/v2\/posts\/1257\/revisions\/1265"}],"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=1257"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/desvendandoocodigo.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1257"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/desvendandoocodigo.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1257"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}