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
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); |
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 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; |