I'm refactoring legacy code. I can see that for functions used both declarations and expressions. I know that declarations are hoisted, expressions work as step-by-step execution. There are also named function expressions but I can't use them because there are problems with IE8. So, my question is:
Can I just replace all function declarations with expressions? Is there any visible or possible problems with such replacement? I want to use expressions, define them at top of the file.