Solving the given problems by using Anonymous Functions ,IIFE (Immediately Invoked Function Expression) in JavaScript
-
Print odd numbers in an array:
- Displayed all the odd numbers in the array by using anonymous functions and IIFE(Immediately invoked function expression)
- Get the code in the AnonymousFunction&IIFE folder
-
Convert all the strings to title caps in a string array:
- Displayed all the strings to title caps in the array by using anonymous functions and IIFE (Immediately invoked function expression)
- Get the code in the AnonymousFunction&IIFE folder
-
Sum of all numbers in an array:
- Displayed the sum of numbers in the array by using anonymous functions and IIFE(Immediately invoked function expression)
- Get the code in the AnonymousFunction&IIFE folder
-
Return all the prime numbers in an array:
- Displayed all the prime numbers in the array by using anonymous functions and IIFE(Immediately invoked function expression)
- Get the code in the AnonymousFunction&IIFE folder
-
Return all the palindromes in an array:
- Displayed all the palindromes in the array by using anonymous functions and IIFE(Immediately invoked function expression)
- Get the code in the AnonymousFunction&IIFE folder
-
Return median of two sorted arrays of the same size:
- Displayed median of two sorted arrays of the same size by using anonymous functions and IIFE(Immediately invoked function expression)
- Get the code in the AnonymousFunction&IIFE folder
-
Remove duplicates from an array:
- Displayed the removed duplicates from an array by using anonymous functions and IIFE(Immediately invoked function expression)
- Get the code in the AnonymousFunction&IIFE folder
-
Rotate an array by k times:
- Displayed the rotated array in k times by using anonymous functions and IIFE (immediately invoked function expression).
- Get the code in the AnonymousFunction&IIFE folder
- Print odd numbers in an array:
- Displayed all the odd numbers in the array by using Arrow Function
- Get the code in the ArrowFunction folder
- Convert all the strings to title caps in a string array:
- Displayed all the strings in title caps by using the Arrow Function
- Get the code in the ArrowFunction folder
- Sum of all numbers in an array:
- Displayed sum of all numbers in an array by using the Arrow Function
- Get the code in the ArrowFunction folder
- Return all the prime numbers in an array:
- Displayed all the prime numbers in an array by using the Arrow Function
- Get the code in the ArrowFunction folder
- Return all the palindromes in an array:
- Displayed all the palindromes in an array by using the Arrow Function
- Get the code in the ArrowFunction folder