retour au cours
Ce contenu n'est disponible que dans les langues suivantes :English, Español, Indonesia, Italiano, 日本語, 한국어, Русский, Türkçe, 简体中文. Merci de

The answer: null.

function f() {
  alert( this ); // null
}

let user = {
  g: f.bind(null)
};

user.g();

The context of a bound function is hard-fixed. There’s just no way to further change it.

So even while we run user.g(), the original function is called with this=null.