I have returned two values but console displaying only one value.. what’s wrong with my code? [closed]

In the below function, I was expecting two values to be returned but I am getting only one value in the console. var contacts =[ {“firstname”: “karthi”,”lastname”: “kosuri”,”mobile”: “9999666888889”,”likes”:[“pizza”,”icecream”,”curdrice”]}, {“firstname”: “sathvik”,”lastname”: “kosuri”,”mobile”: “9849488486”,”likes”:[“biryani”,”vada”,”idly”]}, {“firstname”: “neelu”,”lastname”: “kosuri”,”mobile”: “892736636”,”likes”:[“annam”,”pappu”,”charu”]}, {“firstname”: “kesav”,”lastname”: “kosuri”,”mobile”: “748484848484”,”likes”:[“kudithi”,”sambar”,”bokka”]} ]; function contactlookup(name, prop){ for( var i=0; i< contacts.length;i++){ if(contacts[i].firstname=== name){ return contacts[i][prop]; }…

Details

UFW + fail2ban not working with `nginx` to block attack scripts

my server is currently attacked by some script kiddies. I have set up fail2ban which correctly bans the IP. 2020-01-07 05:51:45,639 fail2ban.actions [1656]: WARNING [nginx-botsearch] 123.207.92.128 already banned 2020-01-07 05:51:47,802 fail2ban.filter [1656]: INFO [nginx-botsearch] Found 123.207.92.128 – 2020-01-07 05:51:47 2020-01-07 05:51:48,026 fail2ban.filter [1656]: INFO [nginx-botsearch] Found 123.207.92.128 – 2020-01-07 05:51:48 2020-01-07 05:51:48,242 fail2ban.actions [1656]: WARNING…

Details