From 841da793e5bd4f62b7ef0352031c6b59753018ac Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 23 Jun 2022 16:51:07 +0200 Subject: [PATCH] better logs --- public/js/main.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/public/js/main.js b/public/js/main.js index dced113..58e6e1f 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -36,7 +36,7 @@ const updateConst = () => { getString().textContent = firstname.replace(/^\w/, (c) => c.toUpperCase()); getDouble().textContent = data.const; - console.log(`info: ${JSON.stringify(data.infos)}`); + console.log(`info: ${JSON.stringify(data.infos, undefined, 2)}`); } else { defaultFirstname(); defaultConstant(); @@ -66,8 +66,6 @@ const defaultConstant = () => { } const getConst = (letters = Array) => { - console.log(`input: ${letters}`); - // Store constants of each letters of the firstname let const_data = [];