From 24700058923f32aad8eccccc3e914dcc9469f7fa Mon Sep 17 00:00:00 2001 From: moanos Date: Mon, 14 Apr 2025 20:24:17 +0200 Subject: [PATCH] refactor: comments + print --- public/index.html | 3 +++ src/index.js | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/public/index.html b/public/index.html index 4497720..b764c9b 100644 --- a/public/index.html +++ b/public/index.html @@ -55,6 +55,7 @@
+
@@ -118,6 +119,7 @@
+
@@ -144,6 +146,7 @@
+
diff --git a/src/index.js b/src/index.js index c3dea5f..4b8e7a6 100644 --- a/src/index.js +++ b/src/index.js @@ -170,8 +170,6 @@ class Validator { Calculates the number of rats that are allowed for a certain overall area. */ let result = 3.0 + (overallArea - MINIMUM_AREA_THREE_RATS) / AREA_PER_ADDITIONAL_RAT; - console.log(`Area left: ${overallArea - MINIMUM_AREA_THREE_RATS}`); - console.log(`Result: ${result}`); if (result < 3) { throw new Error("Cages must be for three rats or more"); } @@ -396,8 +394,6 @@ function updateNumRatsCalculator() { } - console.log(`Allowed number: ${allowedNumRats}`); - let resultsDiv = document.getElementById("num-rats-resultsDiv"); const result = getResultFromChecks(failed_checks);