Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

KnockoutJS Array

Posted on 2012-12-31
3
Medium Priority
?
390 Views
Last Modified: 2013-01-07
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
0
Comment
Question by:GriffisJ
  • 2
3 Comments
 
LVL 9

Expert Comment

by:Sar1973
ID: 38734288
Does the command .isNullo exist? I knew .isNull instead...and .IsNullOrEmpty
0
 

Accepted Solution

by:
GriffisJ earned 0 total points
ID: 38739074
parentheses needed

vd.tools().length
0
 

Author Closing Comment

by:GriffisJ
ID: 38750316
simple concise answer
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question