Skip to content

xgravellx/javascript-algorithm-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 

Repository files navigation

javascript-algorithm-examples

In this repo, you can find examples to improve your Javascript Algorithm knowledge.

Open terminal and use the code below. nodemon .\ex1.js or node .\ex1.js

1. Beginner

  • Ex-1: Finding the sum of two numbers
  • Ex-2: Finding the sum of the square of two numbers
  • Ex-3: Finding the sum of the squares of numbers from 1 to 100
  • Ex-4: Program that calculates the age of the person whose date of birth is entered
  • Ex-5: Program to print numbers backwards
  • Ex-6: Calculate the factorial of a number
  • Ex-7: First Reverse: Have the function firstReverse(str) take the str parameter being passed and return the string in reversed order.
  • Ex-8: First Factorial: Have the function firstFactorial(num) take the num parameter being passed and return the factorial of it.
  • Ex-9: Longest Word: Have the function longestWord(sen) take the sen parameter being passed and return the largest word in the string.
  • Ex-10 Letter Changes: Have the function letterChanges(str) take the str parameter being passed and modify it using the following algorithm.
  • Ex-11 Simple Adding: Have the function simpleAdding(num) add up all the numbers from 1 to num.
  • Ex-12 Letter Capitalize: Have the function letterCapitalize(str) take the str parameter being passed and capitalize the first letter of each word.
  • Ex-13 Simple Adding: Have the function simpleAdding(num) add up all the numbers from 1 to num.

Releases

No releases published

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy