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

Cyntia zavala #3

Open
wants to merge 3 commits into
base: cyntia-zavala-review
Choose a base branch
from
Open

Cyntia zavala #3

wants to merge 3 commits into from

Conversation

cyntiazp
Copy link
Collaborator

No description provided.

@cyntiazp cyntiazp requested review from agvaldezc, a user and juanjoms and removed request for a user January 30, 2019 00:02
@juanjoms juanjoms force-pushed the cyntia-zavala branch 2 times, most recently from c79d32d to 0b87f25 Compare January 30, 2019 00:25
@juanjoms juanjoms closed this Jan 30, 2019
@juanjoms juanjoms reopened this Jan 30, 2019
};
agregar(newFramework);
}
let agregar = (framework) => {
Copy link
Owner

@juanjoms juanjoms Jan 31, 2019

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 = () => {
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.

newUrl.value = '';
button.disabled = false;
}
const list: HTMLElement = document.getElementById('list-tab');
Copy link
Owner

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>
Copy link
Owner

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

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.

None yet

2 participants