From e444b628844bb8bdb0e974e3f9b7af786d2fa3d1 Mon Sep 17 00:00:00 2001 From: OnlineBunker Date: Sat, 25 Oct 2025 00:25:11 +0530 Subject: [PATCH] convert calculateColor to arrow function --- 5-browser-extension/solution/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/5-browser-extension/solution/src/index.js b/5-browser-extension/solution/src/index.js index c8adb41e68..ca283dd5a6 100644 --- a/5-browser-extension/solution/src/index.js +++ b/5-browser-extension/solution/src/index.js @@ -14,7 +14,7 @@ const fossilfuel = document.querySelector('.fossil-fuel'); const myregion = document.querySelector('.my-region'); const clearBtn = document.querySelector('.clear-btn'); -calculateColor = async (value) => { +const calculateColor = async (value) => { let co2Scale = [0, 150, 600, 750, 800]; let colors = ['#2AA364', '#F5EB4D', '#9E4229', '#381D02', '#381D02'];