From 63e02eea1d833e3779b0a188e5f78f60556c7298 Mon Sep 17 00:00:00 2001 From: saikumar <159767386+saikumar-pujari@users.noreply.github.com> Date: Tue, 20 Jan 2026 21:00:34 +0530 Subject: [PATCH] Remove redundant echo statement for mod In this Bash script, mod is declared using local inside the check_even function, which means it is accessible only within that function. Therefore, mod prints correctly inside the function but does not exist outside it. As a result, the final echo $mod prints nothing. Bash does not throw an error for undefined variables; it simply expands them to an empty string. --- what-are-functions/add_numbers | 1 - 1 file changed, 1 deletion(-) diff --git a/what-are-functions/add_numbers b/what-are-functions/add_numbers index 050d20f..11f3737 100644 --- a/what-are-functions/add_numbers +++ b/what-are-functions/add_numbers @@ -15,4 +15,3 @@ check_even () { number=2344 check_even $number -echo $mod \ No newline at end of file