From c5480ddd043e2f938234f9cd33ef9a124a511d4a Mon Sep 17 00:00:00 2001 From: Helaine Date: Thu, 18 Nov 2021 19:46:34 -0300 Subject: [PATCH 1/4] forma correta --- .../lista-exercicios-intro-js/.DS_Store | Bin 0 -> 6148 bytes .../lista-exercicios-intro-js/exercicios.js | 108 ++++++++++++++++++ .../lista-exercicios-intro-js/index.html | 14 +++ .../lista-exercicios-intro-js/tests.js | 35 ++++++ 4 files changed, 157 insertions(+) create mode 100644 modulo1/projeto-lista-js/lista-exercicios-intro-js/.DS_Store create mode 100644 modulo1/projeto-lista-js/lista-exercicios-intro-js/exercicios.js create mode 100644 modulo1/projeto-lista-js/lista-exercicios-intro-js/index.html create mode 100644 modulo1/projeto-lista-js/lista-exercicios-intro-js/tests.js diff --git a/modulo1/projeto-lista-js/lista-exercicios-intro-js/.DS_Store b/modulo1/projeto-lista-js/lista-exercicios-intro-js/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..4e0e062580a34cec9a193a91cf0f29dbff08b292 GIT binary patch literal 6148 zcmeHK%}N774E~}$6!p-f7h#^D;2SKZ9z6R3S}Uk*t*{k5&fSOc5%tTD;;wrX5lJBV z(n&J2^Fe1O0A%sBJ_Tj~rc^~yXGC;(G_)7V`$Vxho-xNQcG#dDndmPL>9-%?4i8x4 z24BAayxm@}+U<&QCFhkoe>0({gzT8#(RSSPJ-U9roDA}hhWV`8;0lj}x|cznu9cDu zBm>DnGLQ`XBm=y&Ri=lIX_J9uAQ|{%K+lIlRcr#Qqa7VI)&dYG95$h^&thy)R{^_x~CH zGNVntrKCv)l7auqfJ~Mb%LR8Ack8!(>Rnr?msAzatLjkb_Z|WKq36i41wCHWXI>Ln V9d#BRw{l`W1dNb0$-pl#@D54OHYET6 literal 0 HcmV?d00001 diff --git a/modulo1/projeto-lista-js/lista-exercicios-intro-js/exercicios.js b/modulo1/projeto-lista-js/lista-exercicios-intro-js/exercicios.js new file mode 100644 index 0000000..50c66bd --- /dev/null +++ b/modulo1/projeto-lista-js/lista-exercicios-intro-js/exercicios.js @@ -0,0 +1,108 @@ +// EXEMPLOS DE IMPLEMENTAÇÃO --------------------------------------------------------------- + +// EXERCÍCIO 0A +function soma(num1, num2) { + // implemente sua lógica aqui + return num1 + num2 +} + +// EXERCÍCIO 0B +function imprimeMensagem() { + // implemente sua lógica aqui + const mensagem = prompt('Digite uma mensagem!') + + console.log(mensagem) +} + +// EXERCÍCIOS PARA FAZER ------------------------------------------------------------------ + +// EXERCÍCIO 01 +function calculaAreaRetangulo() { + // implemente sua lógica aqui + +} + +// EXERCÍCIO 02 +function imprimeIdade() { + // implemente sua lógica aqui + +} + +// EXERCÍCIO 03 +function calculaIMC(peso, altura) { + // implemente sua lógica aqui + +} + +// EXERCÍCIO 04 +function imprimeInformacoesUsuario() { + // implemente sua lógica aqui + // "Meu nome é NOME, tenho IDADE anos, e o meu email é EMAIL." + +} + +// EXERCÍCIO 05 +function imprimeTresCoresFavoritas() { + // implemente sua lógica aqui + +} + +// EXERCÍCIO 06 +function retornaStringEmMaiuscula(string) { + // implemente sua lógica aqui + +} + +// EXERCÍCIO 07 +function calculaIngressosEspetaculo(custo, valorIngresso) { + // implemente sua lógica aqui + +} + +// EXERCÍCIO 08 +function checaStringsMesmoTamanho(string1, string2) { + // implemente sua lógica aqui + +} + +// EXERCÍCIO 09 +function retornaPrimeiroElemento(array) { + // implemente sua lógica aqui + +} + +// EXERCÍCIO 10 +function retornaUltimoElemento(array) { + // implemente sua lógica aqui + +} + +// EXERCÍCIO 11 +function trocaPrimeiroEUltimo(array) { + // implemente sua lógica aqui + +} + +// EXERCÍCIO 12 +function checaIgualdadeDesconsiderandoCase(string1, string2) { + // implemente sua lógica aqui + +} + +// EXERCÍCIO 13 +function checaRenovacaoRG() { + // implemente sua lógica aqui + +} + +// EXERCÍCIO 14 +function checaAnoBissexto(ano) { + // implemente sua lógica aqui + +} + +// EXERCÍCIO 15 +function checaValidadeInscricaoLabenu() { + // implemente sua lógica aqui + +} \ No newline at end of file diff --git a/modulo1/projeto-lista-js/lista-exercicios-intro-js/index.html b/modulo1/projeto-lista-js/lista-exercicios-intro-js/index.html new file mode 100644 index 0000000..7d33eda --- /dev/null +++ b/modulo1/projeto-lista-js/lista-exercicios-intro-js/index.html @@ -0,0 +1,14 @@ + + + + + + + + + Document + + +
+ + \ No newline at end of file diff --git a/modulo1/projeto-lista-js/lista-exercicios-intro-js/tests.js b/modulo1/projeto-lista-js/lista-exercicios-intro-js/tests.js new file mode 100644 index 0000000..3c06be9 --- /dev/null +++ b/modulo1/projeto-lista-js/lista-exercicios-intro-js/tests.js @@ -0,0 +1,35 @@ +!function(e,n,t,r,a){var o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},l="function"==typeof o.parcelRequire9b95&&o.parcelRequire9b95,u=l.cache||{},i="undefined"!=typeof module&&"function"==typeof module.require&&module.require.bind(module);function s(n,t){if(!u[n]){if(!e[n]){var r="function"==typeof o.parcelRequire9b95&&o.parcelRequire9b95;if(!t&&r)return r(n,!0);if(l)return l(n,!0);if(i&&"string"==typeof n)return i(n);var a=new Error("Cannot find module '"+n+"'");throw a.code="MODULE_NOT_FOUND",a}f.resolve=function(t){return e[n][1][t]||t},f.cache={};var c=u[n]=new s.Module(n);e[n][0].call(c.exports,f,c,c.exports,this)}return u[n].exports;function f(e){return s(f.resolve(e))}}s.isParcelRequire=!0,s.Module=function(e){this.id=e,this.bundle=s,this.exports={}},s.modules=e,s.cache=u,s.parent=l,s.register=function(n,t){e[n]=[function(e,n){n.exports=t},{}]},Object.defineProperty(s,"root",{get:function(){return o.parcelRequire9b95}}),o.parcelRequire9b95=s;for(var c=0;c{const{getTestResult:e,setTestResult:n}=b.useTestResults(),[t,r]=u.useState(null);return i.default.createElement("div",null,i.default.createElement(p.Heading,null),i.default.createElement("hr",null),i.default.createElement("div",{style:{display:"flex"}},i.default.createElement(m.TestsSelect,{tests:v,selectedTest:t,setSelectedTest:r,getTestResult:e})),t?i.default.createElement(h.TestRunner,{test:t,setTestResultGlobal:n}):i.default.createElement(g.AllTestsRunner,{tests:v}))},w=document.createElement("style");w.textContent=c.default,document.querySelector("head").appendChild(w),l.default.render(i.default.createElement(y,null),document.getElementById("root"))},{"../core/types":"4XE9t","react-dom":"1FapN",react:"3lC58","bundle-text:./water.css":"6xekz","../core/validators":"4w5y8","./components/Heading":"PT9Wn","./components/TestsSelect":"4sjzY","./components/TestRunner":"3swYc","./components/AllTestsRunner":"5sFQ0","./hooks/useTestResults":"5bxix","@parcel/transformer-js/lib/esmodule-helpers.js":"1rdR8"}],"4XE9t":[function(e,n,t){var r=e("@parcel/transformer-js/lib/esmodule-helpers.js");let a;r.defineInteropFlag(t),r.export(t,"INPUT_TYPES",(function(){return a})),function(e){e.FUNCTION_ARGS="FUNCTION_ARGS",e.PROMPT="PROMPT"}(a||(a={}))},{"@parcel/transformer-js/lib/esmodule-helpers.js":"1rdR8"}],"1rdR8":[function(e,n,t){"use strict";t.interopDefault=function(e){return e&&e.__esModule?e:{default:e}},t.defineInteropFlag=function(e){Object.defineProperty(e,"__esModule",{value:!0})},t.exportAll=function(e,n){return Object.keys(e).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in n&&n[t]===e[t]||Object.defineProperty(n,t,{enumerable:!0,get:function(){return e[t]}}))})),n},t.export=function(e,n,t){Object.defineProperty(e,n,{enumerable:!0,get:t})}},{}],"1FapN":[function(e,n,t){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),n.exports=e("./cjs/react-dom.production.min.js")},{"./cjs/react-dom.production.min.js":"7q6tI"}],"7q6tI":[function(e,n,t){ +/** @license React v17.0.2 + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +"use strict";var r=e("react"),a=e("object-assign"),o=e("scheduler");function l(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t