+ 5
I have a doubt about objects in JavaScript. Can anyone help please?
When you open the JavaScript course, go to Objects, the open the first course in it, that is, Introducing Objects. In the first course, open the third part, that is, Object Properties. Go to the end of that page, and you'll see an example which states the use of .length. Click on try yourself. Then change course.name.length to course.lessons.length. Then run the code. The output results in undefined. Why does this happen? Can anyone explain me please? Thanks a bunch!👍☺
4 Respostas
+ 3
length PROPERTY ONLY WORKS WITH STRINGS.
IT RETURNS NUMBER OF CHARACTER IN A STRING.
IT DOESNT WORK WITH NUMBERS.
+ 3
Ok.....
Thanks!
+ 2
The easiest one is HTML. You can first learn it and then you can move forward to learn other languages.
0
pls which of this programming language is the easiest to learn or start with?