Skip to content

Instantly share code, notes, and snippets.

View fhott's full-sized avatar
🛴

Fillipe Hott fhott

🛴
  • Belo Horizonte / Brazil
  • X @fhott
View GitHub Profile
@fhott
fhott / codes.js
Last active June 7, 2019 20:34
Trechos de códigos para a palestra "O Poder do Generator"
// - Symbol
// Sintaxe
Symbol(); // symbol
console.log(Symbol()); // imprime "Symbol()" no console
typeof Symbol(); //'symbol'
// Valoração
const getGoogleRepos = () => {
fetch('https://api.github.com/users/google/repos?page=13&per_page=100', {
method: 'GET',
mode: 'cors'
})
.then(response => response.json())
.then(data => console.log(data))
.catch(err => console.log(err))
}