Skip to content

Instantly share code, notes, and snippets.

View luisafvaca's full-sized avatar

Lu luisafvaca

View GitHub Profile
@luisafvaca
luisafvaca / .js
Created February 19, 2021 14:11
Event Loop
/* Considering this code and say what is the output */
(function wtf() {
console.log("Hi 🦊");
console.log("this is a little overview")
setTimeout(function(){ console.log("wtf!") }, 3000);
setTimeout(function(){ console.log("Maybe you think that it is the trick") }, 0);
console.log("because, all javascript things have a fun explanation")
})()
@luisafvaca
luisafvaca / .js
Last active February 19, 2021 04:01
Temperatures - Solved
/** You can copy and paste this code in this patform
* https://www.codingame.com/ide/puzzle/temperatures
*to test cases and run correctly this code
**/
/**
* Auto-generated code below aims at helping you parse
* the standard input according to the problem statement.
**/
/**
@luisafvaca
luisafvaca / .js
Last active May 15, 2020 15:21
Arrow function VS Anonymous function
//Considering this code.
var person = 👩🏻‍🦰;
var myObjectLiteral = {
person: "👩🏻‍🦳",
sayHi: function(){ console.log(`Hi ${this.person}`)}
} // Hi "👩🏻‍🦳
var myObjectLiteral = {
@luisafvaca
luisafvaca / .html
Last active May 15, 2020 16:29
First Gist
<div>Hello World from Gist 🧠!</div>