Posts by Caroline Santos • 125 points
5 posts
-
-1
votes1
answer78
viewsQ: Add javascript countdown to localstorage
I made a countdown using javascript, which is working fine. However, when adding the event, he wanted to record it in localstorage and allow it to be done more than once, adding several events and…
-
0
votes3
answers73
viewsA: How could I decrease my code?
You can use the string template https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/template_strings ai to break the line use n…
javascriptanswered Caroline Santos 125 -
4
votes2
answers122
viewsQ: Add two array values and transform into a single Javascript variable
I’m a beginner and still in the saga of building a calculator. I can’t use it() I don’t know if it was the right choice but I used array to store the numbers, I’ve tried to use a third array to get…
javascriptasked Caroline Santos 125 -
0
votes1
answer123
viewsQ: Delete element Javascript array
I’m making a calculator (I’m using it to study), and I put a button that should delete the last number from the array, but when I click it returns an error: script.js:16 Uncaught Typeerror: nums.pop…
javascriptasked Caroline Santos 125 -
8
votes2
answers863
viewsQ: Convert binary to decimal without using "parseint()"
I’m trying to make a script binary to decimal number conversion. I know what to use parseInt() It’s enough, but it’s not what I want here. Apparently the code had worked, but when the binary number…