fix no-firstname error
This commit is contained in:
parent
919e74aa37
commit
71a8c6e7fc
1 changed files with 4 additions and 2 deletions
|
@ -13,9 +13,11 @@ const main = () => {
|
||||||
// Callback: called when firstname is changed
|
// Callback: called when firstname is changed
|
||||||
const update_const = () => {
|
const update_const = () => {
|
||||||
const firstname = document.getElementById(input_name).value;
|
const firstname = document.getElementById(input_name).value;
|
||||||
|
if(firstname.length) {
|
||||||
const data = get_const(firstname.toLowerCase().split(""));
|
const data = get_const(firstname.toLowerCase().split(""));
|
||||||
|
|
||||||
console.log(`output: ${data.const} - ${JSON.stringify(data.infos)}`);
|
console.log(`output: ${data.const} - ${JSON.stringify(data.infos)}`);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const get_const = (letters = Array) => {
|
const get_const = (letters = Array) => {
|
||||||
|
|
Loading…
Reference in a new issue