Solved

KnockoutJS Array

Posted on 2012-12-31
3
329 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

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…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
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…

757 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now