Calculator- Error in third operator


So, if you try to add four numbers (added), you should notice that the third operator is missing. What did I do wrong in the ncalc.js?


So at first glance I saw a few issues with your code, they are as followed:

  1. The HTML Syntax isn’t that of a full web page - the HTML syntax isn’t important though as your Javascript (HTML can be addressed later).
  2. Looking at your javascript you have a set amount of variables for your problem - I.e. it cannot handle large and complex calculations. It’s something that needs to be addressed.
  3. Consider using jQuery to update your page - document.getElementById('idHere').innerHTML = "newTextHere"; is going to have some issues depending on when it’s ran - jQuery with document ready is helpful.