This file contains 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 a = 1; | |
const b = 2; | |
const c = 3; | |
(function firstFunction() { | |
const b = 5; | |
const c = 6; | |
(function secondFunction() { | |
const b = 8; | |
(function thirdFunction() { |
This file contains 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 p = () => Promise.resolve(5); | |
const y = async () => { | |
const t = await p(); | |
console.log(t); | |
}; | |
y(); | |
console.log('hello'); |
This file contains 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
function foo() { | |
baz(); | |
} | |
function bar() { | |
baz(); | |
} | |
function baz() { | |
console.log(`baz() was called from: ${whereWasICalledFrom()}`); |
This file contains 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 mongoose = require('mongoose'); | |
(async()=>{ | |
await mongoose.connect('mongodb://nodeco-test-user:nodecotest1234@ds163822.mlab.com:63822/nodeco-test-01-mayo', { | |
useNewUrlParser: true, | |
useUnifiedTopology: true | |
}); | |
})() | |
This file contains 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
/* for (var i = 1; i <= 5; i++) { | |
(function() { | |
setTimeout(function timer() { | |
console.log(i); | |
}, i * 1000); | |
})(); | |
} */ | |
/* for (var i = 1; i <= 5; i++) { | |
(function() { |
This file contains 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 getReview = async slug => { | |
try { | |
const userUid = await knex('user') | |
.where({ | |
company_name: slug | |
}) | |
.select('uid'); | |
const userReviews = await axios.get( | |
`${url}/quotes/v1/reviews/?user=${user_uid}`, |
This file contains 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
<html> | |
<body> | |
<div> | |
<div>PROP: <span>hola soy un texto estático</span></div> | |
<div>ESTADO: <span id="clicks">0</span></div> | |
<button id="boton">click acá</button> | |
</div> | |
<script type="text/javascript"> | |
const clicksElement = document.getElementById('clicks'); | |
const boton = document.getElementById('boton'); |
This file contains 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
<html> | |
<head> | |
<title>un título</title> | |
<meta charset="UTF-8" /> | |
<style> | |
.letra-color-azul { | |
color: blue; | |
} | |
</style> | |
</head> |
This file contains 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
<html> | |
<head> | |
<title>un título</title> | |
<meta charset="UTF-8" /> | |
<style> | |
.letra-color-azul { | |
color: blue; | |
} | |
</style> | |
</head> |
NewerOlder