From 2448a701f9748493d87830d466d074a12a1b1459 Mon Sep 17 00:00:00 2001 From: Pavith Dinusara Bambaravanage <160596797+Pavith19@users.noreply.github.com> Date: Fri, 9 Aug 2024 11:10:42 +0530 Subject: [PATCH 01/11] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 182e9c9..279dee3 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ Welcome to the 10 Days of JavaScript - HackerRank Solutions repository! This rep ## [HackerRank 10 Days of JavaScript Badge]() - 10 Days of JavaScript + https://github.com/Pavith19/10-Days-Of-JavaScript-HackerRank/blob/main/Badge/10days.png ## [🚀 Challenges]() From 2e010b8eb46a27d80c5c5b3b41b57cefb9ca495f Mon Sep 17 00:00:00 2001 From: Pavith Dinusara Bambaravanage <160596797+Pavith19@users.noreply.github.com> Date: Fri, 9 Aug 2024 11:12:07 +0530 Subject: [PATCH 02/11] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 279dee3..f908475 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ Welcome to the 10 Days of JavaScript - HackerRank Solutions repository! This rep ## [HackerRank 10 Days of JavaScript Badge]() - https://github.com/Pavith19/10-Days-Of-JavaScript-HackerRank/blob/main/Badge/10days.png + 10 Days of JavaScript Badge ## [🚀 Challenges]() From a5049ab58111a0490f916f5343fe0a0a8e8d10df Mon Sep 17 00:00:00 2001 From: Pavith Dinusara Bambaravanage <160596797+Pavith19@users.noreply.github.com> Date: Fri, 9 Aug 2024 11:12:24 +0530 Subject: [PATCH 03/11] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f908475..4b42621 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ Welcome to the 10 Days of JavaScript - HackerRank Solutions repository! This rep ## [HackerRank 10 Days of JavaScript Badge]() - 10 Days of JavaScript Badge + 10 Days of JavaScript Badge ## [🚀 Challenges]() From 67ea6ed0e560e0c0b5fbd53b8ebf03c6e88c3a6d Mon Sep 17 00:00:00 2001 From: Pavith Dinusara Bambaravanage <160596797+Pavith19@users.noreply.github.com> Date: Fri, 9 Aug 2024 11:12:39 +0530 Subject: [PATCH 04/11] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4b42621..685b04c 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ Welcome to the 10 Days of JavaScript - HackerRank Solutions repository! This rep ## [HackerRank 10 Days of JavaScript Badge]() - 10 Days of JavaScript Badge + 10 Days of JavaScript Badge ## [🚀 Challenges]() From df6b3afe03b74fc2cd81bee5d4fe2c62a930bd31 Mon Sep 17 00:00:00 2001 From: Pavith Dinusara Bambaravanage <160596797+Pavith19@users.noreply.github.com> Date: Fri, 9 Aug 2024 11:16:34 +0530 Subject: [PATCH 05/11] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 685b04c..5fc2ec0 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,8 @@ [![GitHub Written in](https://img.shields.io/badge/Written%20in-JavaScript%20%7C%20HTML%20%7C%20CSS-blue)](https://shields.io/)    [![GitHub last commit](https://img.shields.io/github/last-commit/Pavith19/10-Days-Of-JavaScript-HackerRank)](https://github.com/Pavith19/10-Days-Of-JavaScript-HackerRank/commits/main)    [![GitHub repo size](https://img.shields.io/github/repo-size/Pavith19/10-Days-Of-JavaScript-HackerRank)](https://github.com/Pavith19/10-Days-Of-JavaScript-HackerRank/archive/main.zip)    -![ViewCount](https://views.whatilearened.today/views/github/Pavith19/10-Days-Of-JavaScript-HackerRank.svg?cache=remove) +![ViewCount](https://views.whatilearened.today/views/github/Pavith19/10-Days-Of-JavaScript-HackerRank.svg?cache=remove)    +[!["Buy Me A Coffee"](https://img.shields.io/badge/-buy_me_a%C2%A0coffee-gray?logo=buy-me-a-coffee)](https://www.buymeacoffee.com/koconderi) # 10 Days of JavaScript - HackerRank Solutions From 51f83b157e82aa2773e0d4202b94d6d6ee2a859e Mon Sep 17 00:00:00 2001 From: Pavith Dinusara Bambaravanage <160596797+Pavith19@users.noreply.github.com> Date: Fri, 9 Aug 2024 11:17:02 +0530 Subject: [PATCH 06/11] Update README.md --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 5fc2ec0..69c03ed 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,6 @@ [![GitHub Written in](https://img.shields.io/badge/Written%20in-JavaScript%20%7C%20HTML%20%7C%20CSS-blue)](https://shields.io/)    [![GitHub last commit](https://img.shields.io/github/last-commit/Pavith19/10-Days-Of-JavaScript-HackerRank)](https://github.com/Pavith19/10-Days-Of-JavaScript-HackerRank/commits/main)    -[![GitHub repo size](https://img.shields.io/github/repo-size/Pavith19/10-Days-Of-JavaScript-HackerRank)](https://github.com/Pavith19/10-Days-Of-JavaScript-HackerRank/archive/main.zip)    ![ViewCount](https://views.whatilearened.today/views/github/Pavith19/10-Days-Of-JavaScript-HackerRank.svg?cache=remove)    [!["Buy Me A Coffee"](https://img.shields.io/badge/-buy_me_a%C2%A0coffee-gray?logo=buy-me-a-coffee)](https://www.buymeacoffee.com/koconderi) From 2e3ee782e6981b19431acabdbaa180a3185841ff Mon Sep 17 00:00:00 2001 From: Pavith Dinusara Bambaravanage <160596797+Pavith19@users.noreply.github.com> Date: Fri, 9 Aug 2024 11:18:23 +0530 Subject: [PATCH 07/11] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 69c03ed..e520599 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ [![GitHub Written in](https://img.shields.io/badge/Written%20in-JavaScript%20%7C%20HTML%20%7C%20CSS-blue)](https://shields.io/)    [![GitHub last commit](https://img.shields.io/github/last-commit/Pavith19/10-Days-Of-JavaScript-HackerRank)](https://github.com/Pavith19/10-Days-Of-JavaScript-HackerRank/commits/main)    ![ViewCount](https://views.whatilearened.today/views/github/Pavith19/10-Days-Of-JavaScript-HackerRank.svg?cache=remove)    -[!["Buy Me A Coffee"](https://img.shields.io/badge/-buy_me_a%C2%A0coffee-gray?logo=buy-me-a-coffee)](https://www.buymeacoffee.com/koconderi) +[!["Buy Me A Coffee"](https://img.shields.io/badge/-buy_me_a%C2%A0coffee-gray?logo=buy-me-a-coffee)](https://buymeacoffee.com/pavith_db) # 10 Days of JavaScript - HackerRank Solutions From b80e8e8e4e0b8310a2e813f694723a8fbd11ccf9 Mon Sep 17 00:00:00 2001 From: Pavith Dinusara Bambaravanage <160596797+Pavith19@users.noreply.github.com> Date: Sat, 10 Aug 2024 19:21:04 +0530 Subject: [PATCH 08/11] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e520599..babb90b 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ These solutions are my own work and were created for educational purposes on Hac ## [🤝 Contributing]() -We welcome contributions to enhance this collection of HackerRank 30 Days of Code solutions: +I welcome contributions to enhance this collection of HackerRank 30 Days of Code solutions: - **Improve Existing Solutions**: Optimize or clarify current solutions. - **Add Explanations**: Provide detailed explanations of code and problem-solving approaches. From 814b3a077a7a910573d1bfdcc3c433a57f9bddd7 Mon Sep 17 00:00:00 2001 From: Pavith Dinusara Bambaravanage <160596797+Pavith19@users.noreply.github.com> Date: Wed, 14 Aug 2024 16:53:59 +0530 Subject: [PATCH 09/11] Update buttonsGrid.js --- Day 8/Buttons Container/buttonsGrid.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Day 8/Buttons Container/buttonsGrid.js b/Day 8/Buttons Container/buttonsGrid.js index 2475fd8..09787e5 100644 --- a/Day 8/Buttons Container/buttonsGrid.js +++ b/Day 8/Buttons Container/buttonsGrid.js @@ -1,3 +1,8 @@ +/* + * Author: Pavith Bambaravanage + * URL: https://github.com/Pavith19 +*/ + var b=document.getElementById('btn5'); var arr=[1,2,3,6,9,8,7,4]; b.onclick=function() @@ -12,4 +17,4 @@ arr.unshift(arr.pop()); document.getElementById('btn7').innerHTML =arr[6]; document.getElementById('btn4').innerHTML =arr[7]; -} \ No newline at end of file +} 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 10/11] 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 11/11] 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 +}