The following code I run in three different ways but only one works without errors. I don't understand why. Could you please tell me if not window who does keep reference to the variable?
SCRIPT:
'use strict';
let s = function(){};
TRY 1**********************************
s();
CONSOLE: OK
TRY 2**********************************
window.s();
CONSOLE: ERROR
TypeError: window.s is not a function
TRY 3**********************************
this.s();
CONSOLE: ERROR
TypeError: this.s is not a function