This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alert("Vim do Git"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const car = db.store.findOne({name: "Ferrari"}); | |
car.door = 2; | |
db.store.update({name: "Ferrari"}, car); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const relogio = document.querySelector(".relogio"); | |
const displayHora = document.querySelector(".hora"); | |
const displayMinuto = document.querySelector(".minuto"); | |
const displaySegundo = document.querySelector(".segundo"); | |
const iniciar = document.querySelector(".iniciar"); | |
const parar = document.querySelector(".parar"); | |
const zerar = document.querySelector(".zerar"); | |
let isStart = false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="pt-br"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Receita do Bolo de Cenoura</title> | |
<link rel="stylesheet" href="./css/style.css"> | |
<link rel="stylesheet" href="./css/bootstrap.min.css"> | |
</head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// EXJ1.JS | |
const mensagem = "Olá Mundo"; | |
console.log(mensagem); // "Olá Mundo" | |
// EXJ2.JS | |
const nome = "Renan Augusto"; | |
const idade = 33; | |
const usuarioAtivo = true? "Sim": "Não"; | |
console.log(`Meu nome completo é ${nome}, tenho ${idade} anos de idade`); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="pt-br"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" href="./css/bootstrap.min.css"> | |
<link rel="stylesheet" href="./css/style.css"> | |
<title>Lista de Carros</title> | |
</head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const adicionar = (num1, num2) => { | |
const resposta = (num1 + num2); | |
console.log(`A operação de adição envolvendo os valores ${num1} e ${num2} é ${resposta}`); | |
return resposta; | |
}; | |
const subtracao = (num1, num2) => { | |
const resposta = (num1 - num2); | |
console.log(`A operação de subtração envolvendo os valores ${num1} e ${num2} é ${resposta}`); | |
return resposta; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!true = false / !false = true / !!false = false / !!true = true / !1 = true / !!1 = false / !0 = false / !!0 = true / !!"" = false | |
let x = 5 ; | |
let y = 9; | |
x < 10 && x!==5 = false | |
x>9 || x===5 = true | |
!(x===y) = true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let lista_de_pratos = ["pipoca", "macarrão", "carne", "feijão", "brigadeiro"]; | |
function entrada(item, time) { | |
if (lista_de_pratos.includes(item)) { | |
if (item == 'pipoca') { | |
if (time >= 10 && time < 20) { | |
if(time >= 11 && time < 20 ) { | |
console.log('CUIDADO PRATO MUITO QUENTE!!!!'); | |
} | |
console.log('prato pronto bom apetite') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE IF NOT EXISTS 'DHTube', 'video' ( | |
idVideo INT(11), | |
Usuario_idUsuario INT(11), | |
titulo VARCHAR(100), | |
descricao TEXT, | |
tamanho DOUBLE, | |
nomeArquivo VARCHAR(100), | |
duracao DOUBLE, | |
imagem VARCHAR(100), | |
qtdReproducoes INT(11), |