You didn’t initialize sumNumbers
, so you get undefined
+ a number = NaN
var numbers, sumNumbers = 0;
More Related Contents:
- Multiple ajax calls inside a each() function.. then do something once ALL of them are finished?
- $().each vs $.each vs for loop in jQuery?
- jQuery animated number counter from zero to value
- Chain ajax and execute it in sequence. Jquery Deferred
- Adding The Anchor Text As The Title Dynamicaly
- Get all Attributes from a HTML element with Javascript/jQuery
- How to prevent a click on a ‘#’ link from jumping to top of page?
- Resize jqGrid when browser is resized?
- Selecting multiple classes with jQuery
- Passing data to a jQuery UI Dialog
- jQuery add required to input fields
- document.getElementsByClassName().innerHTML always returns “undefined”
- jQuery jump or scroll to certain position, div or target on the page from button onclick [duplicate]
- how to wait for element visibility in phantomjs
- JavaScript: Invert color on all elements of a page
- Failed to load resource: net::ERR_CONTENT_LENGTH_MISMATCH
- how can I override console.log() and prepend a word at the beginning of the output?
- How to create rounded bars for Bar Chart.js v2?
- jQuery support “:invalid” selector
- How to individually target multiple dropdowns in CSS for Dropkick Plug-in
- combo box is getting vanished when an alert is coming
- HTML5 drag and drop folder detection in firefox. Is it even possible?
- Add CSS rule via jQuery for future created elements
- jQuery continuous mousedown
- Jquery getJSON cross domain problems
- closure inside a for loop – callback with loop variable as parameter [duplicate]
- Automatically resize jQuery UI dialog to the width of the content loaded by ajax
- What’s the difference between a jQuery object and a DOM element? Difference between .get() and .index()?
- How do I detect IE 8 with jQuery?
- jquery: $(window).scrollTop() but no $(window).scrollBottom()