From 5a927ee9d7d7fc0116a750cfe072444d8e908cab Mon Sep 17 00:00:00 2001 From: Shehroze Talat <69209701+shehroze-1122@users.noreply.github.com> Date: Tue, 6 Jul 2021 14:55:24 +0500 Subject: [PATCH] Updated the hexFormat Your hexFormat was probably missing an f at the start. Now the rgbFormat and hexFormat are convertible pairs. --- Question3/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Question3/script.js b/Question3/script.js index 8057b5c..6d459f7 100644 --- a/Question3/script.js +++ b/Question3/script.js @@ -37,6 +37,6 @@ const toHex = (color) => { }; const rgbFormat = 'rgb(255, 0, 224)'; -const hexFormat = '#f00e0'; +const hexFormat = '#ff00e0'; -console.log(convertColorFormat('(234, 52, 78)')); \ No newline at end of file +console.log(convertColorFormat('(234, 52, 78)'));