Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,153,238 members, 7,818,803 topics. Date: Monday, 06 May 2024 at 04:27 AM |
Nairaland Forum / Science/Technology / Programming / This Dumb Error Kept Me Stuck For A Week. (856 Views)
Help!!! I Got Stuck While Building A Flutter App / Lazy And Dumb Programmers / Stuck In Javascript (2) (3) (4)
This Dumb Error Kept Me Stuck For A Week. by Nobody: 9:31pm On Aug 30, 2021 |
I’m currently building a DOM based calculator. And after adding the click event listener for updating the calculator display, whenever I clicked a number it would appear twice on the calculator screen. This shit nearly drove me crazy. And I’m the type that gives up easily whenever I hit a brick wall. Each day I would give it about 30 mins and that’s it, i go and rest. Only for me to scroll to the bottom of the program and see another event function for the same element firing at the same time This was the function I used for testing on the console and forgot to remove it I’m so happy right now that I won’t even carry on, I might just abandon this dumb project or maybe continue tomorrow I believe we’ve all been in this situation
|
Re: This Dumb Error Kept Me Stuck For A Week. by ovanda(m): 7:17am On Aug 31, 2021 |
Guy if I tell you how many times a dot or wrong spelling nearly ended my programing career ehhh?? E dey happen Sha. 2 Likes |
Re: This Dumb Error Kept Me Stuck For A Week. by Nobody: 10:05am On Aug 31, 2021 |
ovanda: I nearly called it quits this time around. I was convinced this shit wasn’t for me. |
Re: This Dumb Error Kept Me Stuck For A Week. by ovanda(m): 5:32pm On Aug 31, 2021 |
That looks like JavaScript? 1 Like |
Re: This Dumb Error Kept Me Stuck For A Week. by Nobody: 6:59pm On Aug 31, 2021 |
ovanda:Yup |
Re: This Dumb Error Kept Me Stuck For A Week. by CodingBlood: 9:32pm On Sep 01, 2021 |
Omo when will I know ES6 like this... This code of yours is making me envious I noticed something about eventliseners, whenever I add eventliseners to variables without adding dot(.), It'll still run e.g, btnAdd,addEventListener('click', function (){}); The eventlisener eventually worked. Have you noticed this before? |
Re: This Dumb Error Kept Me Stuck For A Week. by Nobody: 1:06am On Sep 02, 2021 |
CodingBlood:So with a comma in place of the dot? Don’t really know I’ve never tried it. I just follow normal conventions. |
Re: This Dumb Error Kept Me Stuck For A Week. by CodingBlood: 2:36pm On Sep 02, 2021 |
Rgade: It was actually an error. I didn't notice until I tried some exercises. 1 Like |
Re: This Dumb Error Kept Me Stuck For A Week. by incandescentena: 8:33am On Mar 16, 2022 |
Rgade:Don't give up 1 Like |
Re: This Dumb Error Kept Me Stuck For A Week. by InfinityFabric: 5:03pm On Mar 16, 2022 |
Oh God, JS... my eyes. |
(1) (Reply)
Why Does The Web App Of A Product Have Less Functionality Than Mobile Version / Learn How To Create Google Voice Here / KT200 Read And Write PSA MD1CS003 Ok
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 10 |