vous n'avez rien vu

This commit is contained in:
Florian Bouillon 2020-07-03 10:53:36 +02:00
parent ad05c139ed
commit ecfb12a548

19
test.js
View File

@ -1,19 +0,0 @@
this.test = 'pouet'
console.log(this.test) // retourne 'pouet'
const fn2 = function() {
console.log(this.test) // retourne undefined
this.pokemon = 'go'
}
fn2()
console.log(this.pokemon)
const fn = () => {
console.log(this.test) // retourne 'pouet'
this.pokemon = 'go'
}
fn()
console.log(this.pokemon)