Help for this page

Select Code to Download


  1. or download this
        
    let myArray = ["alfa", "beta", "gamma"]; 
    myArray.forEach(
               (elem, position) => console.log(`at position ${position} th
    +ere is ${elem}`)
    )
    
  2. or download this
    at position 0 there is alfa 
    at position 1 there is beta
    at position 2 there is gamma
    
  3. or download this
    my @myArray = qw(alfa beta gamma)
    grep { warn "at position ??? there is $_\n" } @myArray;
    
  4. or download this
    at position ??? there is alfa
    at position ??? there is beta
    at position ??? there is gamma