diff --git a/ejer1/1.js b/ejer1/1.js index 1d176c7..e6dbcad 100644 --- a/ejer1/1.js +++ b/ejer1/1.js @@ -38,6 +38,13 @@ var precioFinalMasIVA = (costeFijo + impuestoPartidos + impuestoApuestas) * IVA; document.write(`La factura del mes costará ${precioFinal}€!`); document.write(`
La factura del mes incluyendo IVA costará ${precioFinalMasIVA.toFixed(2)}€!`); +document.write("
") + +document.write(2 + "2") + +document.write("
") + +document.write(2 - "2") // for (let i = 1; i < 6; i++) { // document.write(`
${i}`) // } diff --git a/ejer11/11.js b/ejer11/11.js index 265999c..e237a1c 100644 --- a/ejer11/11.js +++ b/ejer11/11.js @@ -3,7 +3,7 @@ function main() { for (let a = 1; a < numAst; a++) { for (let i = 0; i < a; i++) { - document.writeln(`*`); + document.writeln(``); } document.writeln(`
`) diff --git a/ejer11/google.png b/ejer11/google.png new file mode 100644 index 0000000..cbbcb39 Binary files /dev/null and b/ejer11/google.png differ diff --git a/ejer12/12.html b/ejer12/12.html new file mode 100644 index 0000000..ee1e57b --- /dev/null +++ b/ejer12/12.html @@ -0,0 +1,25 @@ + + + + + + + + + +

Repetidor basado en número de letras

+
+ + + + + + +
+ + + diff --git a/ejer12/12.js b/ejer12/12.js new file mode 100644 index 0000000..564a4b3 --- /dev/null +++ b/ejer12/12.js @@ -0,0 +1,12 @@ +function main() { + var palabra = document.getElementById('numeroDeLetras').value; + + for (let a = 0; a < palabra.length; a++) { + + for (let i = 0; i <= a; i++) { + document.writeln(`${palabra[i]}`); + } + document.writeln(`
`) + + } +}