-
Notifications
You must be signed in to change notification settings - Fork 0
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
Cyntia zavala #3
base: cyntia-zavala-review
Are you sure you want to change the base?
Conversation
c79d32d
to
0b87f25
Compare
}; | ||
agregar(newFramework); | ||
} | ||
let agregar = (framework) => { |
There was a problem hiding this comment.
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
.
button.disabled = false; | ||
} | ||
} | ||
let save = () => { |
There was a problem hiding this comment.
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
.
newUrl.value = ''; | ||
button.disabled = false; | ||
} | ||
const list: HTMLElement = document.getElementById('list-tab'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although javascript uses Hoisting, it is a better practice to declare variables before using them (in this case list
is used on line 71 but declared on line 77).
<form id="new-frameworkjs" class="row"> | ||
<div class="form-group col-3"> | ||
<label for="newName">Nombre</label> | ||
<input type="text" class="form-control" id="newName" value="" placeholder="Nombre" required> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For ids and class names its a better practice to separate words by a hypen i.e. id="new-name"
https://google.github.io/styleguide/htmlcssguide.html#ID_and_Class_Name_Delimiters
No description provided.