Count Occurrences of a Value in an Array
Write a function that counts how many times a given target value appears in the array
arr. Use forEach to iterate through the array. Store the count in the count variable.Premium
JavaScript
Console