Giter VIP home page Giter VIP logo

n1-meli-logica-1's Introduction

n1-meli-logica-1

N1 | BackEnd | 2019 | Semana 2 | Lógica 1 | Variáveis | Condicionais | Loops


Operadores Matemáticos

 + = mais
- = menos
* = multiplicação
/ = divisão
% = resto
** =potencia  

Operadores Relacionais

=    atribui valor
==  igual 
===  igual e de tipos iguais
> maior
< menor
>= maior igual
<= menor igual
!= diferente

Operadores Lógicos

&& significa E
||  significa OU
! significa NÃO

Variáveis

Number string boolean
1, 2, .. 'texto' True ou False
let 
const
var

Condicionais

If e Else

if(condição){
    //sequência de instruções
} else {
    //sequência de instruções
}

Swith

switch (key) {
    case value:
        
        break;

    default:
        break;
}

Laço de repetição`

While

while(condição){
    //sequência de ações
}

Do While

do {
    //sequência de instruções
}while(condição)

For

for(inicialização; condição; incremento){
    //sequência de instruções    
}

ex.: 

for(let i = 0; i>10; i++ ){
    //sequência de instruções    
}

n1-meli-logica-1's People

Contributors

nataliajsilva avatar myrmanso avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.