Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Salvador cuellar #1

Open
wants to merge 4 commits into
base: salvador-cuellar-review
Choose a base branch
from
Open

Conversation

SalvadorC93
Copy link
Collaborator

Ejercicio terminado sin searchbar

@SalvadorC93 SalvadorC93 changed the base branch from master to salvador-cuellar-review January 30, 2019 00:05
console.log(x);
}

let agregar = (framework) => {
Copy link
Owner

Choose a reason for hiding this comment

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

Parameters should always have a type, Typescript only infers a type when a variable is declared and assigned, so if we don't specify the type on parameters, the type will be 'any'.

<input type="text" class="form-control prueba" placeholder="Framework">
</div>
<div class="col-3">
<input type="text" class="form-control prueba2" placeholder="Descripcion" value="">
Copy link
Owner

Choose a reason for hiding this comment

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

Let's use more meaningful id/class names, for example 'input-description' instead of 'pruebaX'
Also, is a better practice to use ids on input forms since in most of the cases the elements on a form are unique.

}


let prueba = () => {
Copy link
Owner

Choose a reason for hiding this comment

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

  • When a variable or method is not going to be reassigned, is a better practice to use const instead of let.
  • Let's use more meaningful method names, e.g. addFramework.

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