When can i use length and this.a ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

When can i use length and this.a ?

20th Dec 2016, 10:12 AM
Florian Hyseni
Florian Hyseni - avatar
3 Answers
+ 1
Code sample?
20th Dec 2016, 10:20 AM
Gabe Rust
Gabe Rust - avatar
+ 1
length can only be used (by default) with arrays, and this refers to the current object you are "inside"
20th Dec 2016, 10:33 AM
Gabe Rust
Gabe Rust - avatar
0
yes
20th Dec 2016, 10:29 AM
Florian Hyseni
Florian Hyseni - avatar