Javascript: pass variable to arrow function instead of setting harcoded value

welcome to shbcf.ru