Firstly, you’ll need to remove (or otherwise account for) all spaces and non-alphabet characters from any sentence which is passed to the function, otherwise these will be counted erroneously as consonants.
Secondly, the way you’ve constructed your conditional statement, with all of those conditional OR operators, won’t get the desired result.
For example, if I fed the string ‘aeiou’ into your function, the first iteration of the for loop would compare 'a' !== 'a' (false) OR 'a' !== 'e' (true) OR 'a' !== 'i' (true) etc… so would then increment consonantCount, for each of the characters in the string, returning a value of 5 from the function, when it should be 0.
The conditional statement should check that ‘a’ is not equal to ALL of the vowels. (You might wish to use logical AND instead of OR).