From cfcfd8b8b46608c7537cc92561dd945b4c4956df Mon Sep 17 00:00:00 2001 From: Pavith Dinusara Bambaravanage <160596797+Pavith19@users.noreply.github.com> Date: Wed, 14 Aug 2024 16:54:40 +0530 Subject: [PATCH 1/2] Update Conditional Statements If Else.js --- Day 2/Conditional Statements If Else.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Day 2/Conditional Statements If Else.js b/Day 2/Conditional Statements If Else.js index 1fe51b6..02c68e3 100644 --- a/Day 2/Conditional Statements If Else.js +++ b/Day 2/Conditional Statements If Else.js @@ -1,3 +1,8 @@ +/* + * Author: Pavith Bambaravanage + * URL: https://github.com/Pavith19 +*/ + function getGrade(score) { let grade; @@ -34,4 +39,4 @@ function getGrade(score) } return grade; -} \ No newline at end of file +} From c215d4db8ada672c3ab9b11d39b4c3f3918e7ff6 Mon Sep 17 00:00:00 2001 From: Pavith Dinusara Bambaravanage <160596797+Pavith19@users.noreply.github.com> Date: Fri, 16 Aug 2024 21:46:39 +0530 Subject: [PATCH 2/2] Update Arithmetic Operators.js --- Day 1/Arithmetic Operators.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Day 1/Arithmetic Operators.js b/Day 1/Arithmetic Operators.js index 6ecb3e2..f0b42d2 100644 --- a/Day 1/Arithmetic Operators.js +++ b/Day 1/Arithmetic Operators.js @@ -1,11 +1,16 @@ -/** +/* + * Author: Pavith Bambaravanage + * URL: https://github.com/Pavith19 +*/ + +/* * Calculate the area of a rectangle. * * length: The length of the rectangle. * width: The width of the rectangle. * * Return a number denoting the rectangle's area. -**/ +*/ function getArea(length, width) { let area; // Write your code here @@ -26,4 +31,4 @@ function getPerimeter(length, width) { // Write your code here perimeter = 2 * (length + width); return perimeter; -} \ No newline at end of file +}