Skip to content

Topic1#2

Open
franrai91 wants to merge 6 commits into
masterfrom
Topic1
Open

Topic1#2
franrai91 wants to merge 6 commits into
masterfrom
Topic1

Conversation

@franrai91
Copy link
Copy Markdown
Owner

Terminados todos los ejercicios, con un commit por cada uno

Comment thread 01-JS-DOM-APIs/js/main.js Outdated
}
})
.catch(error => {
document.getElementById("contenidoJson").style.background = "red";
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Estas referencias a estilos intentá que estén siempre en los archivos de CSS

Comment thread 01-JS-DOM-APIs/js/main.js
reject(Error("Hubo un error"));
}

httpRqs.send();
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

En esta función la indentación te quedó toda desarreglada, fijate si lo podés arreglar

Comment thread 01-JS-DOM-APIs/js/main.js Outdated
configurar.url = 'http://api.icndb.com/jokes/random';

reusable(configurar).then(response =>{
var objeto = JSON.parse(response);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tené más cuidado con los nombres que estás usando para las cosas. configurar es un verbo, da la idea de que es una función. objeto es demasiado general. mensajeAlerta parece más el nombre de una variable que de una función, las funciones hacen algo

Comment thread 01-JS-DOM-APIs/js/main.js Outdated
})
};
function traerConParametros(value){
value = document.getElementById("valorUsuario").value;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Por qué recibís un parámetro value si después lo pisás?

Comment thread 01-JS-DOM-APIs/js/main.js Outdated
var fila = document.createElement('tr');
var elemento = matriz[i].length;

for(n=0;n<elemento;n++){
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ojo con las variables i y n. Nunca las declaraste por lo que son globales.

Copy link
Copy Markdown

@intii intii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

En líneas generales está aprobado. Te dejé un par de comentarios que me gustaría que al menos revisaras, si querés los corregís.
Y un comentario, si podés empezar a programar en inglés, mejor. En este momento a veces tenés variables en inglés, a veces en español, y en general siempre vas a tener que programar en inglés.
También tenemos que poner foco en los nombres de las funciones y las variables

-Cambie la refencia de estilo y lo pase a css
-Arregle la indentacion
-Cambie el nombre de algunas variables y funciones(para intentar hacerlas mas claras)
-Arregle la pisada de parametro value
-Solucione la declaracion de i y n en la funcion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants