Skip to content

Problems Solving: Anonymous Functions, Arrow Function and IIFE (Immediately Invoked Function Expression) 

Notifications You must be signed in to change notification settings

Evanjalin-K/Task--Day4-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Day 4 Task

Solving the given problems by using Anonymous Functions ,IIFE (Immediately Invoked Function Expression) in JavaScript

  1. Print odd numbers in an array:

    1. Displayed all the odd numbers in the array by using anonymous functions and IIFE(Immediately invoked function expression)
    2. Get the code in the AnonymousFunction&IIFE folder
  2. Convert all the strings to title caps in a string array:

    1. Displayed all the strings to title caps in the array by using anonymous functions and IIFE (Immediately invoked function expression)
    2. Get the code in the AnonymousFunction&IIFE folder
  3. Sum of all numbers in an array:

    1. Displayed the sum of numbers in the array by using anonymous functions and IIFE(Immediately invoked function expression)
    2. Get the code in the AnonymousFunction&IIFE folder
  4. Return all the prime numbers in an array:

    1. Displayed all the prime numbers in the array by using anonymous functions and IIFE(Immediately invoked function expression)
    2. Get the code in the AnonymousFunction&IIFE folder
  5. Return all the palindromes in an array:

    1. Displayed all the palindromes in the array by using anonymous functions and IIFE(Immediately invoked function expression)
    2. Get the code in the AnonymousFunction&IIFE folder
  6. Return median of two sorted arrays of the same size:

    1. Displayed median of two sorted arrays of the same size by using anonymous functions and IIFE(Immediately invoked function expression)
    2. Get the code in the AnonymousFunction&IIFE folder
  7. Remove duplicates from an array:

    1. Displayed the removed duplicates from an array by using anonymous functions and IIFE(Immediately invoked function expression)
    2. Get the code in the AnonymousFunction&IIFE folder
  8. Rotate an array by k times:

    1. Displayed the rotated array in k times by using anonymous functions and IIFE (immediately invoked function expression).
    2. Get the code in the AnonymousFunction&IIFE folder

    Solving the given problems by using Arrow Function in JavaScript

    1. Print odd numbers in an array:
      1. Displayed all the odd numbers in the array by using Arrow Function
      2. Get the code in the ArrowFunction folder
    2. Convert all the strings to title caps in a string array:
      1. Displayed all the strings in title caps by using the Arrow Function
      2. Get the code in the ArrowFunction folder
    3. Sum of all numbers in an array:
      1. Displayed sum of all numbers in an array by using the Arrow Function
      2. Get the code in the ArrowFunction folder
    4. Return all the prime numbers in an array:
      1. Displayed all the prime numbers in an array by using the Arrow Function
      2. Get the code in the ArrowFunction folder
    5. Return all the palindromes in an array:
      1. Displayed all the palindromes in an array by using the Arrow Function
      2. Get the code in the ArrowFunction folder

About

Problems Solving: Anonymous Functions, Arrow Function and IIFE (Immediately Invoked Function Expression) 

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published