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

Settings #1

Open
wants to merge 27 commits into
base: main
Choose a base branch
from
Open

Settings #1

wants to merge 27 commits into from

Conversation

GonzaloLascano
Copy link
Owner

No description provided.


function changeTheme(toTheme) {
let fromTheme;
toTheme == 'light' ? fromTheme = 'dark' : fromTheme = 'light'

Choose a reason for hiding this comment

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

una asignación con el ternary operator se suele hacer así:
fromTheme = toTheme == 'light' ? 'dark' : 'light'

const premierePro = new Hardskill ('Premiere Pro', 5, ['None']);
const blender = new Hardskill ('Blender', 5, ['None']);

const hardSkills = [

Choose a reason for hiding this comment

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

para evitar hacer el find abajo esto podría ser un dict, donde las keys sean los names de las Hardskill:
html5.name: html5
después abajo haces:
let reqTech = hardSkills[techName];

</div>
`;

if (mentionContent == 'None') {

Choose a reason for hiding this comment

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

esto quizá quede más limpio si pones lista vacía en las hardskill.related en lugar de None, ejemplo:
const react = new Hardskill ('React JS', 1, []);
y después haces:
if (reqTech.related.length == 0) { ... }

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