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
function Dog(name) { | |
this.name = name; | |
} |
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
function Dog(name) { | |
this.name = name; | |
} | |
Dog.bark = function() { | |
console.log("Guau… from the Dog function") | |
} |
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
function Dog(name) { | |
this.name = name; | |
} | |
Dog.bark = function() { | |
console.log("Guau… from the Dog function") | |
} | |
var bailey = new Dog("Bailey"); |
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
function Dog(name) { | |
this.name = name; | |
} | |
Dog.bark = function() { | |
console.log("Guau… from the Dog function") | |
} | |
Dog.prototype.actuallyBark = function() { | |
console.log("Guau!") | |
} |
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
function Dog(name) { | |
this.name = name; | |
this.bark = function () { | |
console.log("Guau!") | |
} | |
} | |
var bailey = new Dog("Bailey"); |
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
function Dog(name) { | |
this.name = name; | |
this.bark = function () { | |
console.log("Guau!") | |
} | |
} | |
let d = [] | |
for(let i = 0; i<1000000; i++) { | |
d[i] = new Dog(i) | |
} |
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
//FUNCION ASUYNCRONA; NO PREOCUPARSE DE ESTO; | |
var count = 0; | |
var asyncFunction = () => new Promise((res, rej) => { | |
setTimeout(() => { | |
if(count < 10) { | |
count = count+1; | |
console.log('Returning false'); | |
res(false); | |
} else { | |
console.log('Returning 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
import template from './template.js'; | |
const processedTemplate = template({ | |
here: 'hello', | |
alsoHere: 'world', | |
}) |
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
'use strict'; | |
console.log('In Function...'); | |
var AWS = require("aws-sdk"); | |
var uuid = require("uuid"); | |
var sqs = new AWS.SQS();; | |
var QueueUrl = "https://sqs.us-west-2.amazonaws.com/999999/cola.fifo"; | |
exports.main = (event, context, callback) => { |