Skip to content

Tag: javascript

how to perform sum/minus operation on an array of objects, based on similar values(not properties) in an array of objects [closed]

Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 2 years ago. Improve this question i hav…

Character with longest consecutive repetition

i think i have wirtten the correct code for the problem only one thing and it that i return the first longest sequence how can i alter that to return the last maximum sequence? an example from codewars editor : for input ‘0000000000000011111111111111111222222222222222333333333333334444444444444555555555…

How to get if a specific user is online?

I’ve got some code which should send in the current status of a user if they switched to online, but the problem is that it sends the message twice AND that I can’t check who the user who changed their status is. I just want it to check IF the user who changed their status is a person with a

Javascript increase [i] when checkbox == true

I want to give IDs to divs from checkboxes which only are checked. E.g. I got 5 checkboxes and every time a checkbox has not been checked the loop should increase all upcoming checked checkboxes by 1. So in this case the third div should get the id=”4″ but the loop stops after a checkbox is not ch…