{"id":1408,"date":"2024-09-27T12:57:39","date_gmt":"2024-09-27T15:57:39","guid":{"rendered":"https:\/\/desvendandoocodigo.com.br\/?p=1408"},"modified":"2024-09-27T12:58:02","modified_gmt":"2024-09-27T15:58:02","slug":"resumo-da-live-tiktok-27-09-2024","status":"publish","type":"post","link":"https:\/\/desvendandoocodigo.com.br\/?p=1408","title":{"rendered":"Resumo da Live TikTok 27\/09\/2024"},"content":{"rendered":"\n<p>Ol\u00e1 Pessoal! <\/p>\n\n\n\n<p>Na Live do dia 27\/09\/2024  estudamos os La\u00e7os While e Do While utilizando o prompt-sync do NodeJs.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>WHILE\n\nconst prompt  = require('prompt-sync')();\n\nlet soma = 0;\nlet numero = \nNumber(prompt(\"Digite um n\u00famero  ( negativo para sair)\"));\n\nwhile( numero &gt;= 0){\n\n    soma += numero;\n    numero = \n    Number(prompt(\"Digite outro n\u00famero  ( negativo para sair)\"));\n}\nconsole.log(\"A soma dos valores digitados: \" + soma);\n\n\nWHILE2\n\nconst prompt  = require('prompt-sync')();\n\nlet tabuada = \nprompt(\"Digite a tabuada ou SAIR para encerrar\")\n\nwhile(tabuada.toUpperCase()  !==\"SAIR\"){\n\n    let numero = Number(tabuada);   \n\n    if(!isNaN(numero)){\n\n        console.log(`Tabuada do ${numero}`)\n\n        for(let i = 1; i&lt;=5; i++){\n            console.log(`${numero} x ${i} = ${ numero * i}`)\n        }\n        \n    }else{\n        console.log(\"insira um n\u00famero v\u00e1lido! \");\n    }\n\n    tabuada = \n    prompt(\"Digite a tabuada ou SAIR para encerrar\")\n\n}\n\n\n\n\nDO WHILE\n\nconst prompt  = require('prompt-sync')();\nlet usuario, senha;\n\ndo{\n    usuario = prompt(\"Digite o nome do usu\u00e1rio: \");\n    senha = prompt(\"Digite sua senha: \");\n    \n}while( usuario !== \"admin\" || senha !== \"1234\");\n\nconsole.log(\"Login realizado com sucesso!!!!!\");\n\nDO WHILE2\nconst prompt  = require('prompt-sync')();\nvar num\n\ndo{\n    num = Number(prompt(\"N\u00famero\"));\n\n    if(num == 0 || isNaN(num)){\n\n    console.log(\"Digite um n\u00famero v\u00e1lido...\");\n    }\n\n}while(num == 0 || isNaN(num) )\n    var pares = `Pare entre 1 e ${num} --` \n\nfor(var i = 2; i &lt; num; i = i +2 ){\n\n    pares = pares + i  + \" ---- \"\n}\nconsole.log(pares);\n\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>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 27\/09\/2024 estudamos os La\u00e7os While e Do While utilizando o prompt-sync do NodeJs. 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\/1408"}],"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=1408"}],"version-history":[{"count":2,"href":"https:\/\/desvendandoocodigo.com.br\/index.php?rest_route=\/wp\/v2\/posts\/1408\/revisions"}],"predecessor-version":[{"id":1410,"href":"https:\/\/desvendandoocodigo.com.br\/index.php?rest_route=\/wp\/v2\/posts\/1408\/revisions\/1410"}],"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=1408"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/desvendandoocodigo.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1408"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/desvendandoocodigo.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1408"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}