Reading values from dictionary in Javascript

I am trying to read tags from a selected collection of bibliographic data in ZOTERO with Javascript. For those who aren’t familiar with ZOTERO: it has an in-built “run JS” panel to work …

How Can I Make a Loop of two arrays with some rules

I need some help I have two arrays: First array have Boolean elements. (It’s true when button is active , and false if not) The second one strings where “0”(active) or “1” (…

Async Loop Not Honoring Async

I have been a bit stuck on an Async function. What I am trying to accomplish – I am creating a batchProcessing function (batchGetSubs) which will loop through a set of files, read a ID, then make an …

Javascript problem with loop for hiding/showing element depending on checkbox

I’m trying to hide/show an element depending on if the corresponding checkbox is checked or not. There are two checkbox each one corresponding to an element. The name of thos checkboxes and elements …

Loop with ‘setInterval’ and ‘setTimeout’ doesn’t work

I am trying to animate some cards that should enter the screen from the right, stop in the middle for a while, and then vanish to the left, in an infinite loop. This is what I tried: function …

Javascript – Functions won´t run the same way after the first time

I am new learning front-end and Javascript and I am designing a game ¨to learn the abecedary” on my own to achieve that. My intention is to: 1st – Randomnly put the abecedary letters in the …

how do I create an alternating stripe pattern with different stripe widths in javascript

I am trying to create a stripe pattern in javascript (p5.js), where the odd stripes are one width and the even are another. If they were the same width, my code to create the pattern would be as …

What am doing wrong in here?

Input value always gets into if condition first even am parsing it to parseInt() and when page refreshed with a number it gets into else condition, like its not registering the inputValue at first …

Index Values SumUp to Total

I am trying to improve in my Problem Solving Skills and would love to get some explanation on what it is that I am doing wrong or if I can get a hand in the right direction. My code below is what I am …

Change colour on every iteration of forEach loop in javascript?

I have a function that changes the colour of an element briefly, then changes it back to the original colour. Depending on the level you’re at (it’s a puzzle game), a forEach loop then runs this …