In ES6, what does the new specification mean, “block level function declaration” means?

I am walking on es6 compatibility table trying to find out here .

the binding section says: "Declare a block level function?". I cannot find any blogs or documentation other than the official spec for these word combinations.

Question: What is a “block level function declaration” with reference to?

+4
source share
2 answers

kangax example is tested for:

alert(function(){
    'use strict';
    function f() { return 1; }
    {
      function f() { return 2; }
    }
    return f() === 1;
}());

this means that the "lift" function behaves the same as let(vs var).

ES5 "", , for, if, try .., 2- f() "clobber" 1-, ES6-compat, f() , , f, 1- .

ES6 ({ ... }) , . , ES6, , - , , , - ; JS.

+2

Checkout SO ES6?.

.

+1

All Articles