Skip to content

Instantly share code, notes, and snippets.

View JuanSeBestia's full-sized avatar
😃
Happy

Juan Sebastian Dussan Cubides JuanSeBestia

😃
Happy
View GitHub Profile
@JuanSeBestia
JuanSeBestia / Structures.js
Created March 25, 2021 17:44
Structures.js
class Hoja {
constructor(left = null, right = null, root = null) {
this.left = left;
this.right = right;
this.root = root;
}
}
var root = new Hoja();
root.left = new Hoja(null, null, root);
@JuanSeBestia
JuanSeBestia / recursion-examples.js
Last active March 25, 2021 17:45
recursion-examples.js
/**
* Funcion que imprime n veces Dani cumple i
* Dani cumple 1
* Dani cumple 2
* Dani cumple 3
* ...
* Dani cumple 30
*/
function cantar(edad) {
let valorActual = 1;