get help in general - we have more specialized help rooms here: https://gitter.im/FreeCodeCamp/home
thecodingaviator on master
remove A (#31157) (compare)
if (a < 0 || b < 0) return undefined
:star2: 1382 | @thekholm80 |http://www.freecodecamp.com/thekholm80
entrys = ["0"]
so it acts like a real calculator and that will fix the AC action.
if(this.getAttribute("action") === "AC"){
entrys = ["0"]
updateScreen();
}
//checks if the value clicked is ce if it is then will remove by every click the last value inserted in the array returns nothing when array is equal to empty
else if(this.getAttribute("action") === "CE"){
if(entrys.length > 1){
entrys.pop();
updateScreen();
}else{
entrys = ["0"]
updateScreen();
}
}