A pure functional JavaScript Library that includes many useful functions.
Date
Index
getDateLong
April 17, 2025, Thursday
getDateLongArray
April 17, 2025, Thursday
getDaysBetweenDates
710 days
getDaysInFebruary
28 days
getMonthDayYear
4/17/2025
getYearMonthDay
2025/4/17
getDayOfWeek
Thursday
getMonthName
May
getYear
2025
isLeapYear
true
getTime24
16:19:14
getTime12
04:30:09 PM
getHours24
16
getMinutes
43
getSeconds
30
getTime12PST
04:54:27 AM
getDateTime12
4/17/2025, 4:51:56 PM
Info
Index
getURL
https://www .swpc.noaa.gov/communities/space-weather-enthusiasts-dashboard
getTitleOfPage
Space Weather Enthusiasts Dashboard
howManyElements
2731
Arithmetic
Index
isPrime(n)
isPrime(5), returns, true
gcd(a, b)
greatest common denominator
gcd(5, 10), returns, 5
lcm(n)
least common multiple
lcm(4, 8), returns, 8
factorial(n)
computes the factorial of a number
factorial(8), returns, 40320
isEven(n)
isEven(5), returns, false
isOdd(n)
isOdd(5), returns, true
lcd(n)
lcd(8, 10), returns, 40
sum(a, b)
sum(10, 7), returns, 17
product(a, b)
product(4, 4), returns, 16
power(a, b)
power(2, 3), returns, 8
Statistics
Index
findMax
45
findMin
23
calculateSum
138
Text
Index
getSelectedTextMouseUpRemovable
Video
Index
videoPlay
Play
videoPause
Pause
videoBack
Back
videoForward
Forward
videoTimeGet
50.145
Style
Index
array
Index
Index
- Click the green Code Button on this github page
- Choose Download ZIP
- Save the Zip File
- Extract All
- Double click the README.md file to open library in VSCode
https://github.com/ChristopherAndrewTopalian/CATopalian_JavaScript_Library
Happy Scripting :-)
//----//
// Dedicated to God the Father
// All Rights Reserved Christopher Andrew Topalian Copyright 2000-2025
// https://github.com/ChristopherTopalian
// https://github.com/ChristopherAndrewTopalian
// https://sites.google.com/view/CollegeOfScripting