gabsgbs
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # PLAYLIST JS ## NOME: GABRIEL OLIVEIRA LOOZE MIRANDA ## TURMA: INFO A ## NÚMERO: 11 ### RESUMO: js é uma linguagem de auto nivel tipagem dinamica w3school utilizada junto com html css versão 6 diversos ajustes linguagem bem aberta diversos frameworks utilizam ReactJS, Ingular2, Vue.js não é necessário esoecificar o tipo da variável tipagem fraca dinamica = antes guardava numero, agr guarda texto dinamica não= estática linguagem keysensitive apenas o primeiro valor é lido, em parâmetros extras em funções iniciar com var use strict faz com que o js nos force a escrever do jeito correto, sem burlar as sintaxes é possível criar mais de uma variavel em um comando, separando por vírgula, sem necessidade de usar var da segunda pra frente ao já criar uma variavel, não é necessário usar a palavra var novamente para editá-la console.log é um consolewriteline podemos mostrar o conteúdo de uma variavel se a criarmos logo abaixo de um console.log, mas dará indefinido e não um erro palavras diferentes para criar variáveis const não permite trocar o valor de uma variavel criada typeof mostra o tipo de uma variável number, string, boolean e object existem constantes dentro do valor de math também permite realizar expressões operador ++ adiciona 1 à variável processo chamado de incrementação operador += permite incrementar o valor a variavel -- decrementa 1 -= decrementa o valor possível fazer contas com o valor de variaveis, as utilizando em contas se estiverem entra aspas, irá concatenar e não somar os números, pois vão estar como texto possível concatenar números com string, e esse número vai ser convertido em string função string() converte uma variavel função tostring faz a mesma coisa função number() converte para numero parseint inteiro parsefloat decimal para converter um valor para booleano se usa boolean(), porém apenas o valor 0 dá falso textos só podem ser falsos é se ele estiver vazio ano-mes-dia formato para date date.parse retorna a quantidade de milissegundos new date transforma em data js realiza conversões automaticamente concatenar string com number, sempre dará string outros operadores transformam o texto em number possível somar number com boolean, sendo true = 1 e false = 0 null e undefined null = object undefined = não definida quando atribuimos valores, é feito da direita para a esquerda lenght volta numero de caracteres trim remove os espaços do começo e do final invocar uma função de texto não altera a variável touppercase manda tudo para maiusculo tolowercase é o oposto indexof mostra em qual lugar do texto o caractere está sendo a primeira letra = 0 possível passar um segundo parametro, onde se pode colocar um valor para encontrar após ele lastindexof busca a ultima ocorrencia daquele caractere possível pesquisar espaços charat pesquisa o caractere que está na posição especificada possível passar variáveis em charat e indexof charat retorna string charcodeat retorna valor ascii indexof retorna number replace substitui um texto por outro só substitui a primeira ocorrencia e não todas para não deixar casesensitive, utilize / no lugar das aspas e depois da ultima barra a letra i ao colocar o caractere g após a ultima barra, todas as ocorrencias daquela letra serão afetadas substring recorta um texto substr recorta um texto, mas o segundo parametro é o quanto queremos recortar e não aonde parar split transforma string em array, passando um espaço, a cada espaço fará um item do array join reúne um array em string concat concatena valores de texto, e retorna string ceil arredonda valor para cima floor arredonda valor para baixo tofixed recebe por parametro para quantas casas decimais queremos arredondar, mas retorna uma string math.pow eleva a potência math.sqrt faz a conta de raiz math.abs retorna o valor absoluto da variavel e retorna sempre positivo math.max retorna o maior valor passado math.min retorna o menor valor passado math.random retorna um número aleatorio arredondando com math.round retornamos um npumero arredondado funções de data são pegas por meio do get, tendo diversas funções para ler getmonth retorna números, considerando janeiro como 0 e dezembro como 11 setdate altera o conteudo da variavel, por data ser do tipo objeto funções de leitura get e funções de set cada função to retorna a data em um formato especifico condição é feita com o comando if usado com operadores relacionais possível comparar uma variável com uma variável se uma comparação for verdadeira, será executado o if, senão será executado o else else if é um segundo if, que verifica se o if acima foi falso, se sim ele será executado possível utilizar diversos else ifs para fazer várias verificações é possível utilizar if com chamadas de funções utilizando os operadores lógicos, é possível fazer mais de uma comparação no mesmo if || e && são "ou" e "e" ou precisa apenas de um true e precisa de todas as comparações true ! operador de negação inverte os valores booleanos

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully