New File for loadOrder explanation
New File for loadOrder explanation

THAT WAS TOO EASY AND YOU STILL SHALL NOT PASS. MAYBE AFTER THIS ONE.” - The Wizard-Devs of the Hoisting Hills

The Wizard-Devs aren’t used to such Hoisting mastery. They’ve concocted a new, tougher hoisting analysis that you’ll need to prepare before you can cross their bridge. Here are the rules, with some necessary extras:

    For all variable declarations, put the corresponding declarations at the top of the function. Assign them a value of undefined and maintain their order.
    Now that variable declarations have been placed at the top, remove the original declarations, but leave any associated assignments.
    Then, hoist all function declarations to immediately after your variable declarations, maintaining their order as well.
    Any function expression assignment is treated here as executable code, and does not change the load order.
    Remove any unreachable statements after the first return statement.
Alayode/sagacious-octo-hockeypuck,Alayode/sagacious-octo-hockeypuck