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
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
<!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
// 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"> | |
<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
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
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
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
db.pessoa.update({nome: "Renan"}, {$inc: {sobrenome: "Santos"}}); | |
WriteResult({ | |
"nMatched": 0, | |
"nUpserted": 0, | |
"nModified": 0, | |
"writeError": { | |
"code": 14, | |
"errmsg": "Cannot increment with non-numeric argument: {sobrenome: \"Santos\"}" | |
}, | |
}) |
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 empresa = "cpfl paulista"; | |
const categoria = "luz"; | |
const valor = "187,47"; | |
const consumo = "224"; | |
const data_leitura = "25/01/2019"; | |
const data_emissao = "26/01/2019"; | |
const data_vencimento = "11/02/2019"; | |
const data_proxima_leitura = "24/02/2019" | |
const check_pagamento = "PAGO"; |