better logs

This commit is contained in:
Mylloon 2022-06-23 16:51:07 +02:00
parent c9db599d87
commit 841da793e5
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -36,7 +36,7 @@ const updateConst = () => {
getString().textContent = firstname.replace(/^\w/, (c) => c.toUpperCase()); getString().textContent = firstname.replace(/^\w/, (c) => c.toUpperCase());
getDouble().textContent = data.const; getDouble().textContent = data.const;
console.log(`info: ${JSON.stringify(data.infos)}`); console.log(`info: ${JSON.stringify(data.infos, undefined, 2)}`);
} else { } else {
defaultFirstname(); defaultFirstname();
defaultConstant(); defaultConstant();
@ -66,8 +66,6 @@ const defaultConstant = () => {
} }
const getConst = (letters = Array) => { const getConst = (letters = Array) => {
console.log(`input: ${letters}`);
// Store constants of each letters of the firstname // Store constants of each letters of the firstname
let const_data = []; let const_data = [];