Results for javascript
I would like to change the css styles of a website but only during the month of decemeber how can I do this? This is the css that I would like to incl...
In the snippet below, if you: Click down in the red and hold the click down Then move the cursor to the blue (without releasing yet) Then release t...
I am making a simpe "email confirm" page. It gets confirm key from URL, sends a POST request to API which returns true or nothing. If key is correct t...
I am using multiple tabs in react-js and each tab content is a component like below profile component that contains multiple input controls. I want to...
I'm using TypeScript and I want to extend Array to enforce a specific argument. This way, I can make sure that whenever I create a FruitArray, the fi...
Is it possible to flatten or remove the topmost key of an object? For example: const obj = { page: { title: 'x', images: { 0...
I have a STEPS_CONFIG object that defines various steps, each with a set of properties including defaultValues. However, when I try to access defaultV...
Can anyone tell me Difference between these two versions and also tell any depreciation happened between them, New modules،new concepts.Any impact on ...
I'm creating a todo list and i can not properly push a task into a project instance. I tried creating a selectProject function that would target the p...
I would like to know if there is a way to access the "description" property of the objects within the array and use some string cutting method, such a...
I have the following HTML file named index.html: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8&...
I currently doing a challenge that requires me to debug a code snippet. The challenge states that there are bugs in the code that need to be changed s...
I am having an issue where my react context data resets whenever I change routes using React-Router-DOM v6 as my routing library. I'm very confused be...
I have a test js script to load into REPL session: // testRepl.js const cls = () => console.clear(); const msg = txt => console.info(txt); const...
Has anyone ever came across this problem? I have stripped my app down completely to basically a shell in a new React app so it's only the layout and a...
I want to open my favorites sidebar with a single click on my keyboard. So when pressing "f" I want the sidebar modal to open. Now it opens like this:...
this is a strange question for a strange syntax I've found and I can't explain the reason why one would use it: let ranges = []; // field and value a...
I am trying to do a copy of a row to add another line of inputs but every time I click the button the value of every input resets. Here is what I've w...
In javascript, number are all of type double, so is it faster to use bit operations than to add, subtract, multiply, and divide? Such as division and ...
I have an issue while selecting the object as value for Select component (Ant Design). This is what I'm trying to do import React, { useEffect, useSta...
I checked out Why can I use a function before it's defined in JavaScript?. and It says I can use functions before or after initialization when using D...
I have a custom modal / full screen react component that uses position: fixed to ensure that it always take up the full screen. However, this componen...
There is a dropdown and based on the values of the dropdown I am sorting the ag grid here but I want to fix a row at top when doing sorting with id 95...
Im trying to get my head round this not sure if its even possible this way but just cant seem to get the hang of it. I have and array of object and ea...
https://github.com/KaanAlper/Discord-Card On desktop browsers I can use it up to 125%, after that the content disappears. In phone nothing is visible ...
How do I undo the most recent local commits in Git?
How can I remove a specific item from an array in JavaScript?
How do I delete a Git branch locally and remotely?
How can I find all files containing a specific text (string) on Linux?
How to find all files containing specific text (string) on Linux?
How do I revert a Git repository to a previous commit?
How do I create an HTML button that acts like a link?
How do I check out a remote Git branch?