I cant get the following code to return 3 random names from that array, any suggestions? (The duplicate question didn't adress my problem, hence my problem is 3 values instead of 1 value.)
function navn() {
    var arr = ["Hans", "Ole", "Nils", "Olav", "Per", "Knut", "Kari", "Line", "Pia"];
    var nyArr = arr.filter(function (number) {
        return number % 3 === 0;
    });
}
 
     
     
     
     
     
    