KnockoutJS Array

GriffisJ
GriffisJ used Ask the Experts™
on
Please checkout this JS Bin
http://jsbin.com/iqikuf/3/edit


When the below is run in the console, the result shown makes sense to me.
statement: vd.tools.push(dataItem);
resuelt: 2

But why do we get the below results when run in the console?
statement: vd.tools.length
result: 0
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
Does the command .isNullo exist? I knew .isNull instead...and .IsNullOrEmpty
Commented:
parentheses needed

vd.tools().length

Author

Commented:
simple concise answer

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial