Solved

KnockoutJS Array

Posted on 2012-12-31
3
368 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Suggested Solutions

In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
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…

751 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