hello guys, I have a local HTML page with a lot of rows, it's an export of a log history which I don't have access to through an appropriate data model. I need to review all t...
clean code followers: if I want to specify an array containing urls (https://...) of user profiles, so: ["https://foo.com/profile1", "https://foo.com/profile2"], how should I ...
hello guys, I want to handle a hover + onclick event (as telegram does when you select messages to forward) and this is what I come up with: let isClicked = false; document.a...
guys, how can I improve the style of this chaining? document.querySelectorAll('ul[data-tabs]') .forEach((tabs) => { tabs.querySelector('li').classList.add('tab-se...
guys do you know how is called in design when you have two similar but distinguishable colors?
can anyone tell me what im doing wrong in getting the index of the target? tabs.addEventListener('click', function(event) { const target = event.target; const targetIt...
if can I ask a partial off topic question, there's a repo github or something like that, listing the main programming language used by big companies (e.g. GitHub - Ruby)? I am...
Hello guys, I'm sending an image because there's no need to handle the code, or at least I think. So, as showed, I'm basically adding HTML get via AJAX after the submit input ...
guys if I have an array like: let arr = [{id: 1, name: "John", surname: "Doe"}, {id: 2, name: "Jane", surname: "Doe"}, ...] can I convert this array in-loco into an object li...
guys, isn't await supposed to work only inside an async function? how then here await db.read() works outside an async function? https://github.com/typicode/lowdb#usage
can someone tell me what I have to look to understand the "Note", I mean why changing to a function component, I can write it without defining a hidden function?
guys, based on your experience: I have icons that are connected only with js, clicking them correspond to an action (are controls icon). Is better to add the icon <i> to a cli...
so guys, little regex question: I have a regex that should catch: [=foo] [="foo"] [='foo'] the begin and the end have to be the same so I'm gonna to capture the quotes and c...
does anyone know some open source web projects built on node that are simple and not over bloated to take inspiration on? For example: https://github.com/bradtraversy/devconn...
guys, I have multiple elements like this one: <table class="todo-tasks" data-category-id="xxx" data-todo-tasks> I wanted to select all [data-todo-tasks] and select just one t...
<?php // Keyword:Point $keywords = [ 'lol' => 1, 'rofl' => 2, 'lmao' => 3, 'lel' => 4 ]; $text = "omg lol you guys check thsi thread lmao! legit top lel right the...
guys, is it fine adding event handlers inside functions? I created this function to detect outside clicks: function click_outside(ignore, handler) { $(document).click(fun...
guys, it may be a little off topic but its a very fast question: do you know how is called when in design you have two similar but distinguishable colors?
Hello guys, I'm uncertain of the use of the "var" keyword inside functions. Should I use them? I mean, if I want a variable that I'm going to use just inside an event handler ...
hello guys, I have a doubt about javascript timers (setinterval/settimeout) integrated with AJAX. Every x seconds I'm running an AJAX request to my server in order to refresh ...