{"id":1391,"date":"2024-09-21T11:55:39","date_gmt":"2024-09-21T14:55:39","guid":{"rendered":"https:\/\/desvendandoocodigo.com.br\/?p=1391"},"modified":"2024-09-21T11:57:41","modified_gmt":"2024-09-21T14:57:41","slug":"resumo-da-live-tiktok-21-09-2024","status":"publish","type":"post","link":"https:\/\/desvendandoocodigo.com.br\/?p=1391","title":{"rendered":"Resumo da Live TikTok 21\/09\/2024"},"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 21\/09\/2024  estudamos as Condicionais e a estrutura Switch Case.<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>ESCOPO\n\n\/\/ escopo global\nlet a = 5;\nvar b = 10;\nconst c = 20;\n\n        var k = 5;\n        if(k == 5){\n            \/\/ escopo local\n            let a = 4;\n            var b = 1;\n            const c  = 50;\n            console.log('let'  , a);\n            console.log('var'  , b);\n            console.log('const', c);\n        }\n\nconsole.log('let'  , a);\nconsole.log('var'  , b);\nconsole.log('const', c);\n\na = 1000;\nconsole.log('let'  , a);\n\n\nCONDICIONAL 1\n\nmedia = 7;\n\nif(media &gt;= 7){\n    console.log(\"Parab\u00e9ns voc\u00ea foi aprovado!\");\n\n}else if(media &gt;= 4){\n    console.log(\"Aten\u00e7\u00e3o voc\u00ea est\u00e1 de exame\");\n}else{\n\n    console.log(\"Voc\u00ea Reprovou!!!\");\n}\n\n\nCONDICIONAL 2\n\nlet idade = 17;\nlet habilitado = false;\n\nif(idade &gt;=18){\n\n    if(habilitado){\n        console.log(\"Pode dirigir.\");\n    }else{\n        console.log(\"Voc\u00ea precisa ter CNH para dirigir\");\n    }\n\n}else{\nconsole.log(\"Voc\u00ea n\u00e3o tem idade suficiente!!!\");\n}\n\nESTRUTURA CASE\n\nlet fruta = \"uva\";\n\nswitch(fruta){\n\n    case \"uva\":\n        console.log(\"Voc\u00ea escolheu um uva\");       \n        break;\n\n    case \"banana\":\n        console.log(\"Voc\u00ea escolheu uma banana\");\n        break;\n    \n    case \"laranja\":\n        console.log(\"Voc\u00ea escolheu uma laranja\");\n        break;\n\n    default:\n        console.log(\"Fruta n\u00e3o encontrada.\"); \n        break;\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<h2 class=\"wp-block-heading\"><strong>HOR\u00c1RIO DAS LIVES<\/strong><\/h2>\n\n\n\n<p><\/p>\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","protected":false},"excerpt":{"rendered":"<p>Ol\u00e1 Pessoal! Na Live do dia 21\/09\/2024 estudamos as Condicionais e a estrutura Switch Case. 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\/1391"}],"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=1391"}],"version-history":[{"count":3,"href":"https:\/\/desvendandoocodigo.com.br\/index.php?rest_route=\/wp\/v2\/posts\/1391\/revisions"}],"predecessor-version":[{"id":1394,"href":"https:\/\/desvendandoocodigo.com.br\/index.php?rest_route=\/wp\/v2\/posts\/1391\/revisions\/1394"}],"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=1391"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/desvendandoocodigo.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1391"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/desvendandoocodigo.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1391"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}