I'm working on the cash register #JavaScript project from #freeCodeCamp (https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures-v8/build-a-cash-register-project/build-a-cash-register), and I almost have it, but I keep failing one or two of the tests. Right now, it's test 19. I added my #code to #JSBin, which is more #accessible than #CodePen, and it can be found here: https://jsbin.com/yiratay/edit?html,js,output
Can anyone help me understand what I'm doing wrong?
#JS #accessibility #learningToCode #learningToProgram #beginnerProgrammer #beginnerCoder #JavaScriptIsHard
freeCodeCamp.org

Learn to Code — For Free

Still stuck on this #freeCodeCamp #JavaScript project. I've used console.log statements to look at what different functions are returning, but I don't understand why they're returning what they are for test 18 and 19. Can someone please help? I just posted my code on the freeCodeCamp forum, and you can find it at: https://forum.freecodecamp.org/t/build-a-cash-register-project-build-a-cash-register/717252
#JS #programming #coding #learningToCode #learningToProgram #beginnerProgrammer #beginnerCoder #JavaScriptIsHard Good evening all. Just woke up and had something to eat, leftover pizza from yesterday. Going to get dressed and then try to tackle this #freeCodeCamp #JavaScript project again. Still feeling a little overwhelmed and unsure how to fix things, but hopefully it will go better now that I've slept some.
#JS #programming #coding #learningToCode #learningToProgram #beginnerCoder #beginnerProgrammer #JavaScriptIsHard
Build a Cash Register Project - Build a Cash Register

Tell us what’s happening: My code is failing tests 18 and 19. I used console.log statements to figure out why, and it’s returning INSUFFICIENT-FUNDS for test 18. I’ve gone over my code but have no idea why. Can someone help me figure this out? Your code so far <!DOCTYPE html> <html lang="en"> <head> <meta name="viewport" content="width=device-width, initial-scale = 1.0" /> <meta charset="UTF-8" /> <title>freeCodeCamp Cash Register Project</title> </head> <body> <h1>Cash Re...

The freeCodeCamp Forum
@RareBird_15 If I'm reading this right, you are getting the correct result, the problem is formatting it - they want you to filter out the zero values and only show the Penny value
@earthtoneone Thanks. I think I'm also getting floating point errors for things and that's causing issues. A couple people have suggested switching functions to using cents instead of dollars, and I tried that last night but must have messed up somewhere because it made my code fail a lot of tests.