Cursos
Fazer loginComeçar a aprender IA
Cursos
Fazer loginComeçar a aprender IA
+ 3

Why this keyword return undefined and doesn't work for changing object value

Look at the JavaScript code https://code.sololearn.com/WAWsHd1S0Pmd/?ref=app

javascriptthis
1st Aug 2022, 12:01 PM
EsaKurniawan
2 Respostas
+ 4
"Arrow functions don't have their own bindings to this, arguments or super, and should not be used as methods." https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions You can also use a function expression https://code.sololearn.com/WGzd87swM3Qw/?ref=app
1st Aug 2022, 12:56 PM
ODLNT
ODLNT - avatar
0
Answer Here below
2nd Aug 2022, 4:34 AM
Behzod
Behzod - avatar

Costuma ter perguntas como essa?

Aprenda de maneira mais eficiente, de graça:

  • Introdução ao Python

    7.1M de alunos

  • Introdução ao Java

    4.7M de alunos

  • Introdução ao C

    1.5M alunos

  • Introdução ao HTML

    7.5M alunos

Ver todos os cursos
Quente hoje
Ошибка в приложении Sololearn
1 Votes
Is anyone else experiencing this Sololearn issue?
0 Votes
NEO V2.0
1 Votes
Sololearn course
1 Votes
Best language?
0 Votes
solo learn program issue - iPhone?
1 Votes
Is it possible to write Rust code that is as compact and expressive as Python?
0 Votes
I am learning javascript intrmdt but when I play a code challenge. The app is givin me comlecated questions with less time.why?
0 Votes
Learn - multiple choice course questions display in one box making it impossible to continue
1 Votes
How do I keep myself motivated in coding
0 Votes