There is this answer on Stack Overflow to support that JS function declarations hoist before variable declarations. It's based on very earlier version of Spec.
Link to the answer - Order of hoisting in JavaScript
Link to the spec it refers - https://www.ecma-international.org/ecma-262/5.1/#sec-10.5
The reasoning is based on step 8(c) of sec 10.5
Now as per the modern spec, can someone tell me that where this order of hoisting is discussed or is it still relevant to say that function declarations are hoisted before variable declarations ?
Link to the current spec - https://www.ecma-international.org/ecma-262/11.0/index.html