-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
12bf28e
commit b60ffb7
Showing
21 changed files
with
104 additions
and
156 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
const NAME = 'Eliaz'; | ||
const LASTNAME = 'Bobadilla'; | ||
const USERNAME = 'UltiRequiem'; | ||
const NAME = "Eliaz"; | ||
const LASTNAME = "Bobadilla"; | ||
const USERNAME = "UltiRequiem"; | ||
const AGE = 14; | ||
const EMAIL = '[email protected]'; | ||
const EMAIL = "[email protected]"; | ||
const ADULT = false; | ||
const SAVED_MONEY = 2; | ||
const DEBS = 0; | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
const introduceMySelf = (name, lastname, nickname) => { | ||
console.log( | ||
`Mi nombre es ${name} ${lastname}, pero prefiero que me digas ${nickname}.` | ||
`Mi nombre es ${name} ${lastname}, pero prefiero que me digas ${nickname}.`, | ||
); | ||
}; | ||
|
||
introduceMySelf('Eliaz', 'Bobadilla', 'Zero'); | ||
introduceMySelf("Eliaz", "Bobadilla", "Zero"); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
const tipoDeSuscripcion = 'Basic'; | ||
const tipoDeSuscripcion = "Basic"; | ||
|
||
if (tipoDeSuscripcion === 'Free') { | ||
console.log('Solo puedes tomar los cursos gratis'); | ||
} else if (tipoDeSuscripcion === 'Basic') { | ||
console.log('Puedes tomar casi todos los cursos de Platzi durante un mes.'); | ||
} else if (tipoDeSuscripcion === 'Expert') { | ||
console.log('Puedes tomar casi todos los cursos de Platzi durante un año.'); | ||
} else if (tipoDeSuscripcion === 'Expert+') { | ||
if (tipoDeSuscripcion === "Free") { | ||
console.log("Solo puedes tomar los cursos gratis"); | ||
} else if (tipoDeSuscripcion === "Basic") { | ||
console.log("Puedes tomar casi todos los cursos de Platzi durante un mes."); | ||
} else if (tipoDeSuscripcion === "Expert") { | ||
console.log("Puedes tomar casi todos los cursos de Platzi durante un año."); | ||
} else if (tipoDeSuscripcion === "Expert+") { | ||
console.log( | ||
'Tú y alguien más pueden tomar TODOS los cursos de Platzi durante un año.' | ||
"Tú y alguien más pueden tomar TODOS los cursos de Platzi durante un año.", | ||
); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
const printStatus = (suscripcionType) => { | ||
if (suscripcionType !== 'Free') { | ||
console.log('Puedes tomar muchos cursos.'); | ||
if (suscripcionType !== "Free") { | ||
console.log("Puedes tomar muchos cursos."); | ||
return; | ||
} | ||
console.log('Estás limitado en los cursos.'); | ||
console.log("Estás limitado en los cursos."); | ||
}; | ||
|
||
const suscripcion = 'Expert+'; | ||
const suscripcion = "Expert+"; | ||
printStatus(suscripcion); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
let input = 0; | ||
|
||
do { | ||
input = prompt('¿Cual es el resultado de 2 + 2?'); | ||
input = prompt("¿Cual es el resultado de 2 + 2?"); | ||
} while (!(input === 4)); |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
const NUMBERS = [2, 2, 2, 2, 2, 4, 5, 5, 5, 5, 5, 5, 5, 5, 9]; | ||
|
||
function mode(arr){ | ||
return arr.sort((a,b) => | ||
arr.filter(v => v===a).length | ||
- arr.filter(v => v===b).length | ||
).pop(); | ||
function mode(arr) { | ||
return arr.sort((a, b) => | ||
arr.filter((v) => v === a).length - | ||
arr.filter((v) => v === b).length | ||
).pop(); | ||
} | ||
|
||
|
||
console.log(mode(NUMBERS)); |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,81 +1,81 @@ | ||
const colombia = []; | ||
colombia.push({ | ||
name: 'Camila', | ||
name: "Camila", | ||
salary: 500, | ||
}); | ||
colombia.push({ | ||
name: 'Nath', | ||
name: "Nath", | ||
salary: 1500, | ||
}); | ||
colombia.push({ | ||
name: 'Luisa', | ||
name: "Luisa", | ||
salary: 1800, | ||
}); | ||
colombia.push({ | ||
name: 'Laura', | ||
name: "Laura", | ||
salary: 1000, | ||
}); | ||
colombia.push({ | ||
name: 'Daniela', | ||
name: "Daniela", | ||
salary: 2200, | ||
}); | ||
colombia.push({ | ||
name: 'Esperancita', | ||
name: "Esperancita", | ||
salary: 200, | ||
}); | ||
colombia.push({ | ||
name: 'Carla', | ||
name: "Carla", | ||
salary: 500, | ||
}); | ||
colombia.push({ | ||
name: 'Antonieta', | ||
name: "Antonieta", | ||
salary: 1500, | ||
}); | ||
colombia.push({ | ||
name: 'Alicia', | ||
name: "Alicia", | ||
salary: 1300, | ||
}); | ||
colombia.push({ | ||
name: 'Ana', | ||
name: "Ana", | ||
salary: 2400, | ||
}); | ||
colombia.push({ | ||
name: 'Julia', | ||
name: "Julia", | ||
salary: 3400, | ||
}); | ||
colombia.push({ | ||
name: 'Rosa', | ||
name: "Rosa", | ||
salary: 400, | ||
}); | ||
colombia.push({ | ||
name: 'Angélica', | ||
name: "Angélica", | ||
salary: 400, | ||
}); | ||
colombia.push({ | ||
name: 'Tatiana', | ||
name: "Tatiana", | ||
salary: 400, | ||
}); | ||
colombia.push({ | ||
name: 'Lorena', | ||
name: "Lorena", | ||
salary: 600, | ||
}); | ||
colombia.push({ | ||
name: 'Carolina', | ||
name: "Carolina", | ||
salary: 1600, | ||
}); | ||
colombia.push({ | ||
name: 'Fernanda', | ||
name: "Fernanda", | ||
salary: 2600, | ||
}); | ||
colombia.push({ | ||
name: 'Nora', | ||
name: "Nora", | ||
salary: 1000, | ||
}); | ||
colombia.push({ | ||
name: 'Gisselle', | ||
name: "Gisselle", | ||
salary: 2000, | ||
}); | ||
colombia.push({ | ||
name: 'Bill Gates', | ||
name: "Bill Gates", | ||
salary: 100000000, | ||
}); |
Oops, something went wrong.