From b247d241e2ed58a2c94bc319b77232e10d7de4a6 Mon Sep 17 00:00:00 2001 From: jateenbhagat02 <63227706+jateenbhagat02@users.noreply.github.com> Date: Sun, 1 Sep 2024 16:45:38 +0530 Subject: [PATCH] Update 8h.html when '=' is clicked right after 'clear', the value of 'calculation' is set to undefined. --- 1-exercise-solutions/lesson-08/8h.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-exercise-solutions/lesson-08/8h.html b/1-exercise-solutions/lesson-08/8h.html index b498290..55647e7 100644 --- a/1-exercise-solutions/lesson-08/8h.html +++ b/1-exercise-solutions/lesson-08/8h.html @@ -71,7 +71,7 @@ // Avoid using eval() in real world projects since // it can potentially be given harmful code to run. // Only use eval() for learning purposes. - calculation = eval(calculation); + calculation = eval(calculation) || ''; console.log(calculation); // Remember to save the calculation here.