Welcome to the JavaScriptFunc project! This project aims to demonstrate various JavaScript functions with examples covering a wide range of functionalities.
- Reverse String: Reverse a given string.
- Calculate Factorial: Calculate the factorial of a non-negative integer.
- Sum of Array Elements: Calculate the sum of elements in an array.
- Square Root: Calculate the square root of a number.
- Change Text Color: Change the color of a text element.
- Fibonacci Sequence: Generate the Fibonacci sequence up to a specified number of terms.
- Prime Number Check: Check if a given number is prime.
- Palindrome Check: Check if a given string is a palindrome.
To run this project locally, follow these steps:
- Clone the Repository: Clone this repository to your local machine using the following command:
git clone https://github.com/your-username/javascriptfunc.git
- Open in VSCode: Open the project folder in Visual Studio Code.
- Install Live Server Extension: Install the Live Server extension for VSCode if you haven't already. You can find it in the VSCode Extensions Marketplace.
- Start Live Server: Open the index.html file and click on the "Go Live" button at the bottom right corner of the editor. This will launch the project in your default web browser.
- Explore Examples: Explore the different examples provided in the project by interacting with the input fields and buttons.
If you want to share your project live with others using Live Server Share in VSCode, follow these additional steps:
- Install Live Share Extension: Install the Live Share extension for VSCode if you haven't already. You can find it in the VSCode Extensions Marketplace.
- Start Live Share Session: Click on the Live Share icon in the activity bar on the side of the editor and select "Start collaboration session". This will generate a unique sharing link that you can share with others.
- Share Live Server Link: After starting the Live Share session, share the Live Server link with others so they can view your project in real-time.
- Collaborate: Collaborate with others in real-time on the project. Changes made by any participant will be reflected instantly for everyone in the session.
Contributions to this project are welcome! Feel free to add more examples, improve existing code, or fix any issues you encounter. Simply fork the repository, make your changes, and submit a pull request.