From ece5b6f7d4872fac3c11dc9ace687296209ec946 Mon Sep 17 00:00:00 2001 From: Mohammed Thalha <75726754+MohammedThalha2002@users.noreply.github.com> Date: Tue, 17 Jan 2023 16:36:29 +0530 Subject: [PATCH] fix : added outputs for the console logs --- 07_Day_Functions/07_day_functions.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/07_Day_Functions/07_day_functions.md b/07_Day_Functions/07_day_functions.md index 17d9087..ae3bb74 100644 --- a/07_Day_Functions/07_day_functions.md +++ b/07_Day_Functions/07_day_functions.md @@ -94,7 +94,7 @@ function addTwoNumbers() { let numTwo = 20 let sum = numOne + numTwo - console.log(sum) + console.log(sum) // 30 } addTwoNumbers() // a function has to be called by its name to be executed @@ -106,7 +106,7 @@ addTwoNumbers() // a function has to be called by its name to be executed let lastName = 'Yetayeh' let space = ' ' let fullName = firstName + space + lastName - console.log(fullName) + console.log(fullName) // Asabeneh Yetayeh } printFullName() // calling a function @@ -124,7 +124,7 @@ function printFullName (){ let fullName = firstName + space + lastName return fullName } -console.log(printFullName()) +console.log(printFullName()) --> Asabeneh Yetayeh ``` ```js @@ -137,7 +137,7 @@ console.log(printFullName()) } -console.log(addTwoNumbers()) +console.log(addTwoNumbers()) --> 5 ``` ### Function with a parameter @@ -162,7 +162,7 @@ function square(number) { return number * number } -console.log(square(10)) +console.log(square(10)) --> 100 ``` ### Function with two parameters @@ -705,4 +705,4 @@ It Will be covered in other section. 🎉 CONGRATULATIONS ! 🎉 -[<< Day 6](../06_Day_Loops/06_day_loops.md) | [Day 8 >>](../08_Day_Objects/08_day_objects.md) \ No newline at end of file +[<< Day 6](../06_Day_Loops/06_day_loops.md) | [Day 8 >>](../08_Day_Objects/08_day_objects.md)