I have learned about hoisting recently in JS, aside from using const and let to prevent hoisting would it be advisable to change all function statement to function expressions?.
My justification is that hoisting creates unpredictability in code and I think that using function expressions make your code more predictable.