Skip to content

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

Notifications You must be signed in to change notification settings

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.