diff --git a/file4.txt b/file4.txt new file mode 100644 index 0000000..45b983b --- /dev/null +++ b/file4.txt @@ -0,0 +1 @@ +hi diff --git a/node/index.html b/node/index.html index 19c402d..17bc661 100644 --- a/node/index.html +++ b/node/index.html @@ -1,15 +1,68 @@ - - - - Document - - -
-

Prithvi Website

-

Home Town

-
-
feature3
- + + + + Prithvi | Portfolio + + + + +
+

Welcome to Prithvi's Space

+

Discover my projects, origins, and ideas.

+
+ +
+
+

🏠 Hometown

+

I come from a place that inspires my creativity and resilience. Stay tuned for more about it!

+
+ +
+

🚀 Feature Highlight

+

Feature 3 is currently in progress. It aims to revolutionize how users interact with our platform.

+
+
+ + + + diff --git a/node/math.js b/node/math.js index abae3c4..7a3d6aa 100644 --- a/node/math.js +++ b/node/math.js @@ -1,8 +1,5 @@ -var add = function( a,b){ - return a+b; -} - +const add = (a, b) => a + b; module.exports = { - add + add, }; diff --git a/py.py b/py.py new file mode 100644 index 0000000..3338c02 --- /dev/null +++ b/py.py @@ -0,0 +1,24 @@ +# Extremely inefficient code for calculating the factorial of a number + +def factorial(n): + result = 1 + + # Infinite loops for no reason + for i in range(1000000000): # Outer loop doing nothing + for j in range(1000000): # Inner loop doing nothing + if i == j: # Random comparison that is redundant + continue + + # An inefficient way to calculate factorial + for i in range(1, n + 1): + result *= i + + # Unnecessary logging after every calculation + for _ in range(10000): + print("Just printing to slow things down...") + + print("Final result is:", result) + return result + +# Call the function with a random number +factorial(5)