Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,150,205 members, 7,807,689 topics. Date: Wednesday, 24 April 2024 at 05:32 PM

This Dumb Error Kept Me Stuck For A Week. - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / This Dumb Error Kept Me Stuck For A Week. (852 Views)

Help!!! I Got Stuck While Building A Flutter App / Lazy And Dumb Programmers / Stuck In Javascript (2) (3) (4)

(1) (Reply) (Go Down)

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 sad
This was the function I used for testing on the console and forgot to remove it angry
I’m so happy right now that I won’t even carry on, I might just abandon this dumb project or maybe continue tomorrow angry
I believe we’ve all been in this situation grin

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:
Guy if I tell you how many times a dot or wrong spelling nearly ended my programing career ehhh??
E dey happen Sha.
grin
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:
That looks like JavaScript?
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 grin grin
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:
Omo when will I know ES6 like this... This code of yours is making me envious grin grin
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?
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:

So with a comma in place of the dot?
Don’t really know I’ve never tried it. I just follow normal conventions.

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:
grin I nearly called it quits this time around. I was convinced this shit wasn’t for me.
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)

Can Anyone Hear Me? / Which Is The Best Programming To Learn / Is This Magic?

(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. 11
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.