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 +} 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 +}