i want access laravel helper function on javascript
i have such line code as this :
$codeReduction = $(‘#code’).val();
$reduction = “{{ getReduction(“‘ + $codeReduction + ‘”, 1) }}”;
getReduction() is the helper function which has two parameters i want pass those parameters after rescue the first from val of textfield ($codeReduction)