https://github.com/walidalsafadi/javascript-programs
  
  
    Several JavaScript programs for practice. 
    https://github.com/walidalsafadi/javascript-programs
  
all-substrings html javascript js prime-factors taylor-series
        Last synced: 26 days ago 
        JSON representation
    
Several JavaScript programs for practice.
- Host: GitHub
- URL: https://github.com/walidalsafadi/javascript-programs
- Owner: WalidAlsafadi
- Created: 2023-02-20T17:34:34.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-20T17:39:12.000Z (over 2 years ago)
- Last Synced: 2025-03-16T04:42:34.899Z (8 months ago)
- Topics: all-substrings, html, javascript, js, prime-factors, taylor-series
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
- 
            Metadata Files:
            - Readme: README.md
 
Awesome Lists containing this project
README
          # JavaScript Programs
- Several JavaScript programs for practice.
### All Substrings
 
- JavaScript program that reads a word and prints all substrings, sorted by length.
- The program has a loop to let the user enter as many words as the user wants, and then the user can terminate the program by entering an empty string.
 
### Taylor Series
- JavaScript program that implements the Taylor series expansion of the function (1+x) for any x in the interval (-1,1], as given by:
(1+x)=x−x2/2+x3/3−x4/4+x5/5−....
- The program prompts the user to enter the number of terms n as well as the value of x, and then computes the approximation to (1 + x) using the first n terms of the preceding series. The program prints the approximate value.
### Prime Factors
- JavaScript program that asks the user for an integer n and then prints out all its prime factors.
- Please keep in mind that the program prints all prime factors, even if they are redundant.