Function Fountain

"There is no function
without fun"

Welcome to 🌟 Function Fountain 🌟! Dive into a world of coding with examples in all major programming languages! πŸš€ Whether you’re a beginner or a pro, explore, learn, and elevate your skills with us! πŸ’» Happy Coding! 🌐

ImageFunctionDescriptioncomplexity
find-median-array()This function calculates and returns the median value of an input array.2
findNthPerfectNumber()This function returns the nth perfect number.2
calculateFactorial()A function to calculate the factorial of a given number.2
mergeArrays()This function merges two arrays into one.2
calculateGCDArray()This function computes and returns the greatest common divisor (GCD) of the numbers in an array.2
convertFahrenheitToCelsius()Convert Fahrenheit to Celsius1
calculateCompoundInterest()This function calculates compound interest.2
calculateAreaKite()This function calculates the area of a kite.2
convertMonthsToYearsAndMonths()This function converts months into years and months.1
findCubeRoot()A function that calculates the cube root of a given number.1
findSecondLargestElement()A function to find the second largest element in an array.2
reverseArray()A function to reverse the elements of an array.1
findSecondSmallestElement()This function locates the second smallest number in an array.2
findSumCubesRange()This function calculates the sum of the cubes of all numbers within a specified range.2
calculateSurfaceAreaSphere()A function that calculates the surface area of a sphere.2
findModeArray()Function to find the mode of an array2
calculateLCMArray()This function calculates the Lowest Common Multiple (LCM) for an array of numbers.2
findTriangularNumbersRange()This function finds all the triangular numbers in a given range.2
generateRandomNumber()This function generates a random number within a specified range.1
countVowels()A function to count the vowels in a given string2
calculateVolumeSphere()Calculates the volume of a sphere given its radius.1
countConsonants()A function to count the number of consonants in a given string.2
findNarcissisticNumbersRange()A JavaScript function to find all narcissistic numbers in a given range.2
convertWeeksToMonthsAndWeeks()Converts weeks into equivalent number of months and weeks.2
findLCM()A function to find the Least Common Multiple (LCM) of two numbers.2
findASCIIValue()This function returns the ASCII value of a given character.1
convertDaysToWeeksAndDays()This function converts a given number of days into weeks and remaining days.2
convertBinaryToHexadecimal()This function accepts a binary number as an input and returns its hexadecimal equivalent.2
findPerimeterIsoscelesTriangle()This function calculates the perimeter of an isosceles triangle.1
findStringLength()This function returns the length of a string provided as an input.1
calculateAreaParallelogram()This function calculates the area of a parallelogram.2
calculateAverageSpeed()This function calculates and returns the average speed based on distance and time inputs.2
findSumEvenNumbersRange()A function that calculates the total sum of even numbers between a given range.2
findStrongNumbersRange()This function finds all strong numbers within a specified range.2
calculateSlopeLine()This function calculates the slope of a line given two points in a 2D space.2
findArmstrongNumbersRange()Find Armstrong numbers within a specified range.2
findSquare()This function calculates the square of a number.1
generateNthPrimeNumber()Function to generate the nth prime number.2
countWords()Count the number of words in a given sentence.1
calculateVolumeRectangularPrism()This function calculates the volume of a rectangular prism.1
findSumOfDigits()This function sums the digits of a given number.1
calculateSurfaceAreaCone()This JavaScript function calculates the surface area of a cone given the radius and the slant height of the cone.2
convertToUppercase()This function is used to convert a given string to uppercase.1
findArrayDifference()This function returns the difference between two arrays.2
concatenateStrings()This function concatenates two strings.1
findSumOddNumbersRange()A function to find the total sum of odd numbers in a given range.2
sortArrayAsc()Sorts an array in ascending order.2
reverseString()This function reverses the input string.1
convertHoursToDaysAndHours()This function converts a given number of hours into equivalent days and hours.1
findPerimeterHexagon()This function calculates the perimeter of a hexagon.1
Convert Binary To Octal()This function converts a binary number into an octal number.2
findNthFibonacciNumber()Finds the Nth number in the Fibonacci sequence.2
findPalindromeNumbersRange()This function checks and returns all the palindrome numbers in a given range.2
convertBinaryToDecimal()A function to convert binary numbers to decimal.2
calculateProductNumbersRange()This function calculates the product of all numbers in a given range.2
findSquareNumbersRange()Find all the squares within a given range in JavaScript.2
convertHexadecimalToBinary()Function to convert hexadecimal to binary2
calculateVolumeCylinder()This function calculates the volume of a cylinder.1
findDistanceTwoPoints3D()A function to find the distance between two points in 3D space.2
calculateArraySum()This function calculates the sum of elements in an array1
calculateAreaTrapezoid()Calculates and returns the area of a trapezoid.2
calculateSimpleInterest()This function calculates the simple interest.1
calculateVolumeTriangularPrism()This function calculates the volume of a triangular prism.2
findCube()This function calculates the cube of a given number1
findCharacterFromASCIIValue()This function converts an ASCII value into its corresponding character.1
findGCD()A function to find the Greatest Common Divisor (GCD) of two numbers.1
subtractTwoNumbers()A JavaScript function that subtracts two numbers.1
calculateVolumeCube()This function calculates the volume of a cube.1
calculateSurfaceAreaCylinder()A JavaScript function to calculate the surface area of a cylinder.1
convertDecimalToOctal()This function converts a decimal number to its octal equivalent.2
convertMinutesToHoursAndMinutes()This function converts minutes into hours and minutes in JavaScript.2
findMinElement()Function that finds the smallest element in an array1
findHarshadNumbersRange()This function finds all Harshad numbers in a given range.2
convertToLowercase()This function converts a string to lowercase.1
findCircumferenceCircle()A JavaScript function to calculate the circumference of a circle given the radius.1
findSumSquaresRange()This function calculates the sum of squares in a range.2
convertCelsiusToFahrenheit()Function to convert Celsius to Fahrenheit1
checkSortedArrayAsc()This JavaScript function checks if an array is sorted in ascending order.2
findPower()A function that calculates the power of a number1
calculateVolumeCubeInSphere()A function to calculate the maximum volume of a cube that can fit inside a sphere of a given radius.2
convertOctalToHexadecimal()Function to convert an octal number to a hexadecimal number.2
calculateAreaRhombus()This function calculates the area of a rhombus using its diagonals.1
sortArrayDesc()This function sorts an array in descending order2
generatePrimeNumbersRange()Generates prime numbers within a specified range2
addTwoNumbers()A function that adds two numbers.1
findDistanceTwoPoints2D()This function calculates and returns the distance between two points in a 2D plane.1
findArrayUnion()This function returns the union of two arrays.2
findSquareRoot()A JavaScript function to calculate the square root of a number1
findElementIndex()This function finds the index of a specific element in an array.2
calculateDistanceTraveled()A function to calculate distance traveled given velocity and time.2
findHappyNumbersRange()This function when given a range of numbers, determines and returns the 'happy numbers' that exist within that range.2
convertDecimalToBinary()This function converts a decimal number to a binary number.2
findPrimeFactors()A function in JavaScript that gives prime factors for the given number.2
findModeNumbersRange()This function finds the mode (most frequently occurring numbers) in a range of provided numbers.1
calculateSurfaceAreaPyramid()This function calculates and returns the surface area of a pyramid.2
calculateVolumeTrapezoidalPrism()A function that calculates the volume of a trapezoidal prism.2
calculateAreaEllipse()Function to calculate the area of an ellipse.1
convertHexadecimalToDecimal()This function converts a hexadecimal number to its decimal equivalent2
calculateVolumeSphereInCylinder()This function calculates the volume of a sphere within a cylinder2
findFibonacciNumbersRange()Function to find Fibonacci numbers within a given range.2
checkSortedArrayDesc()This function checks if an array is sorted in descending order.2
findAverageNumbersRange()Calculates the average of a range of numbers2
calculateVolumeCone()This function calculates the volume of a cone.2
findAngleBetweenClockHands()This function determines the smaller angle between the hour and minute hand on a clock given a specific time.2
convertOctalToBinary()This function converts an octal number to binary.2
convertDecimalToHexadecimal()This function converts a decimal number to a hexadecimal string.2
findFactorsNumber()A function that finds and returns all the factors of a given number.2
findPerimeterOctagon()This function calculates the perimeter of an octagon given the length of one side.1
reverseDigits()This function reverses the digits of a given number.1
calculateAreaSector()This function calculates the area of a sector of a circle.2
checkElementInArray()This function checks if a specific element is present in an array.1
calculateSurfaceAreaCubeInSphere()Calculates the surface area of a cube in a sphere.2
capitalizeWords()This function capitalizes the first letter of every word in a given string.2
convertHexadecimalToOctal()Function to convert a hexadecimal number to an octal number.2
convertOctalToDecimal()This function converts octal numbers to decimal.2
calculateVolumeConeInCylinder()This function calculates the volume of a cone that can fit inside a cylinder.2
findMeanArray()Function to calculate the mean of an array in JavaScript2
findLuckyNumbersRange()Function to find lucky numbers in a range3
calculateHypotenuse()A JS function that calculates the hypotenuse of a right-angle triangle.1
calculateSurfaceAreaCube()Calculates the surface area of a cube.2
checkLeapYear()Checks if a year is leap or not.2
checkOdd()This function checks if a given number is odd or even.1
calculateTimeTaken()This function calculates the time elapsed between two events.2
findArrayIntersection()This function returns the common elements between two arrays.2
findPerimeterPentagon()Function to calculate the perimeter of a pentagon.1
generateRandomPassword()This function generates a random password.2
removeArrayDuplicates()JavaScript function to remove duplicates from an array2
findMedianNumbersRange()This function computes the median of a range of numbers.2
divideTwoNumbers()A function that divides two numbers1
findNthPerfectNumberRange()A javascript function to find the nth perfect number in a given range2
findArrayAverage()This function calculates the average of numbers in an array.2
multiplyTwoNumbers()This function multiplies two numbers in Javascript.1
calculateVolumePyramidInCube()A function to calculate the volume of a pyramid inscribed in a cube.2
calculateVolumePyramid()This function calculates the volume of a pyramid.1
generateRandomString()Generates a string of random characters.2
calculateVolumeConeInSphere()A function to calculate the volume of a cone inside a sphere.2
checkPrime()A function to check if a number is prime2
checkPerfectSquare()Checks if a number is a perfect square.2
checkPalindrome()Function to check if a string is a palindrome1
findMaxElement()This function finds the maximum element in an array2
checkEven()A function to check if a number is even or not.1