+ 1
Unable to solve 65 Code Project Words
Why is this giving an error its the last code project from the JavaScript course https://code.sololearn.com/ctW2h4WiA6dk/?ref=app
2 RĂ©ponses
+ 5
Thatâs because âthis.kâ doesnât exist.
You may ask âwhy? Iâve declared it in the constructorâ
The problem here is that you used var k =[] (variable with local scope inside constructor) but you should use this.k = [] instead (adds k as an object property).
+ 2
Thanks for answering