Results for javascript
I've decided to learn Javascript and after watching a few tutorials, I'm training by doing challenges. One of the iconic challenge is doing a to do li...
I'm new to JavaScript and learning. I'm trying to create a dropdown of locations, and when selected, the shipping costs will dynamically shown for eac...
I'm diving into the world of CSS animation and attempting to replicate the card shuffling animation seen: https://go.topcreditcardfinder.com/ Here's a...
I am using a popup lightbox plugin, the plugin generates next/prev buttons but it doesn't put them in a container. I would like to wrap them in a cont...
I want to make a small animation to make a div(id="dice") grow in width, but I don't know what's going wrong. The position is already absolute. I have...
I'm using javascript and trying to combine reduce and the ternary if/else statement. I am getting an extremely unexpected result and I cannot figure o...
I am trying to write a regular expression to ensure that the text of years is valid. The following are ALL valid years 2023 300 -1 40AD 40 AD 3000 BC...
+page.svelte: script> import { onMount } from 'svelte'; let careers = []; const fetchCareers = async () => { const apiUrl = 'htt...
I have this function this function has to detect numeric and nonnumeric numbers like 'one' or '1'; but the trickiest part is when when you have somet...
Create JavaScript function (price, pcs) With denomination [100000, 50000, 20000, 10000, 5000, 2000, 1000] So function(40000, 4) return [10000, 10000, ...
I want to create new array based on keyword. if my search key word is "align-center" result should be ["align-center"] "align" result should be ["a...
I am working on a Django Project and I have the following html page which renders a form. I do not know much of Javascript, and I think I am going wro...
I'm making a random image generator in JavaScript following this online guide. I'm looking to generate multiple random images as shown in example 2 of...
I am getting an array in an API response. I have logged the response and checked in the browser console. Before expanding the log it can be seen that ...
I wrote a BrainFuck compiler in JavaScript and it works fine with this input: ++++++++[>++++[>++>+++>+++>+-]>+>+>->>+[]-]>>.>---.+++++++..+++.>>.-..++...
I'm trying to solve this example that we were given. ul class="wrapper"> li class="form-row"> label id="label">IDlabel> label id...
I don't understand this implementation of the easeOutQuart function from this repository: https://gist.github.com/CGamesPlay/8628541: easeOutQuart: fu...
I have got a very large string, it contains about 13000 times different data of the same kind. I have now created a function to split this string into...
I'm using Playwright, which lacks an equivalent for JavaScript's closest() function. Can I accomplish that using XPath? ...
Can anyone tell me Difference between these two versions and also tell any depreciation happened between them, New modules،new concepts.Any impact on ...
In my NextJS project using JavaScript, I would like to set the property on a local object. const localItem = { name: is the value I need to set>> }...
When updating properties on a class instance, is this the best approach? I could use some clarification from a more experienced developer on this. Her...
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...
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...
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 ...
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?