{"id":1322,"date":"2024-08-26T20:37:18","date_gmt":"2024-08-26T23:37:18","guid":{"rendered":"https:\/\/desvendandoocodigo.com.br\/?p=1322"},"modified":"2024-08-26T20:40:08","modified_gmt":"2024-08-26T23:40:08","slug":"resumo-da-live-tiktok-26082024","status":"publish","type":"post","link":"https:\/\/desvendandoocodigo.com.br\/?p=1322","title":{"rendered":"Resumo da Live TikTok 26082024"},"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 26\/08\/2024 foram abordados os seguintes temas:<\/h2>\n\n\n\n<ul>\n<li>Vetores;<\/li>\n\n\n\n<li>push;<\/li>\n\n\n\n<li>Unshift;<\/li>\n\n\n\n<li>Pop;<\/li>\n\n\n\n<li>Shift;<\/li>\n\n\n\n<li>Splice;<\/li>\n\n\n\n<li>Desestrutura\u00e7\u00e3o de dados.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>\nVETOR\nlet carros = &#91;\"Toyota\", \"Honda\"];\nconsole.log(\"Lista inicial:\", carros);\n\n\/\/para adicionar no final da lista\ncarros.push(\"Ford\");\nconsole.log(\"Depois do PUSH:\", carros);\n\n\/\/para dicionar no come\u00e7o da lista\ncarros.unshift('Chevrolet');\nconsole.log(\"Depois do UNSHIFT:\", carros);\n\n\/\/ remover o \u00faltimo elemento\nlet ultimoCarro = carros.pop();\nconsole.log(\"Depois do POP:\", carros);\nconsole.log('Carro removido com POP ' + ultimoCarro);\n\nlet primeiroCarro = carros.shift();\nconsole.log(\"Depois do SHIFT:\", carros);\nconsole.log('Carro removido com SHIFT ' + primeiroCarro);\n\n\/\/adicionar um elemento em uma posi\u00e7\u00e3o especifica\ncarros.splice(1, 1, 'Nissan' );\nconsole.log('Depois do SPLICE', carros);\n\n\nARRAY\n\nconst numbers = &#91;1,2,3];\n\n\/\/extrair o primeiro e o segundo elemento \n\nconst &#91;first, second] = numbers;\n\nconsole.log(first);\nconsole.log(second);\n\n\nARRAY2\n\nconst numbers = &#91;1,2,3,4];\n\n\/\/ pular o segundo elemento\nconst &#91;first,         ,third] = numbers;\nconsole.log(first);\nconsole.log(third);\n\nOBJETOS\n\nconst person = {\n    nome: 'Nancy',\n    age: 25,\n    city: 'New York'\n};\nconst { nome, age } = person;\n\nconsole.log(nome);\nconsole.log(age);\n\n\nOBJETOS2\n\n\/\/renomear as vari\u00e1veis\n\nconst person = {\n    nome: 'Nancy',\n    age: 25,\n    city: 'New York'\n};\n\nconst { nome: firstName } = person;\nconsole.log(firstName);\n\n\nFUNCTION\n\nfunction printUser({ nome, idade}){\n    console.log(`Nome: ${nome}, idade: ${idade}`);\n\n}\nconst user = {nome: 'Marcos', idade: 44};\n\nprintUser(user);\n\n\n\nREST\n\nfunction separarNumeros(){\n    const numeros = &#91;10,20,30,40,50,60,70];\n    const &#91;primeiro, segundo, ...restante] =\n    numeros;\n    return {\n        primeiro,\n        segundo,\n        restante\n    };\n}\nconst resultado = separarNumeros();\nconsole.log(`Primeiro:  ${resultado.primeiro}` );\nconsole.log(`Segundo:  ${resultado.segundo}` );\nconsole.log(`Restante:  ${resultado.restante&#91;1]}` );\nconsole.log(typeof(resultado));\n\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><\/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\">PR\u00d3XIMAS LIVES<\/h2>\n\n\n\n<p>28\/08\/2024 \u00e0s 19:00hs<\/p>\n\n\n\n<p>29\/08\/2024 \u00e0s 10:00hs<\/p>\n\n\n\n<p>30\/08\/2024 \u00e0s 10:00hs<\/p>\n\n\n\n<p>31\/08\/2024 \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 26\/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 28\/08\/2024 \u00e0s 19:00hs 29\/08\/2024 \u00e0s 10:00hs 30\/08\/2024 \u00e0s 10:00hs 31\/08\/2024 \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\/1322"}],"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=1322"}],"version-history":[{"count":3,"href":"https:\/\/desvendandoocodigo.com.br\/index.php?rest_route=\/wp\/v2\/posts\/1322\/revisions"}],"predecessor-version":[{"id":1326,"href":"https:\/\/desvendandoocodigo.com.br\/index.php?rest_route=\/wp\/v2\/posts\/1322\/revisions\/1326"}],"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=1322"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/desvendandoocodigo.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1322"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/desvendandoocodigo.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1322"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}