Skip to content

Suggestion  #1

@hashemt

Description

@hashemt

Choose a descriptive function name, and make some validation before setting the value like preventing the user to enter more than 6 digits and prevent him to enter an unexpected value.

event_2/js/index.js

Lines 23 to 27 in e21edff

function input(e){
let hex = e.target.value;
paint.style.backgroundColor = hex;
textColor.style.color = hex;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions