Besides hardcoding, is there a way/shortcut to programmatically get a matching package & version from the root level package.json? I’m creating a gene
Before the new version 12.1.0 of NextJS when i ran the command run build && export i would get this Out folder, which I could upload to any host, for e
I'm trying to set a cookie from the backend server running at "api.mydomain.com" like this to the frontend running at "mydomain.com". res.cookie('auth', tok
Im just new in javascript. I used to work with selenium+java. Now I want to perform scroll using JavaScriptExecutor. How do I make it in javascript code instead
You can see my code using this sandbox: https://codesandbox.io/s/strange-shtern-e98gvu?file=/src/App.js Basically, what I want to do is play the animejs animati
I'm adding an event listener but listener didn't added and i have no errors. I'm going to make a word game. And the problem is so weird const alphabets = ["
I am using Chart.js, I have to generate stack bar chart based on fromMonth to toMonth selection. My bar chart option is: { "chartCanvasHeight": "200", "char
I'm running into an issue with Angular where if I ng serve and deploy on localhost, the page loads fine. However if I use ng build and deploy remotely, I then g
I have three divs and I want that every single time I click on any div, it will be swapped with a second div which is meant to be at the center. I have tried li
A class is supposed to have a prototype field that supplies default fields. For example, prototype.constructor defaults to the constructor function (i.e., the c
im trying to make random quotes that are listed in an array appear on my website on reload however I cant quite get it to work Javascript: function textOfToday
So my table works really well, except that it shows no data until either a row is clicked or the filter is used. I am unsure as to what is going on here, not su
Back in vue 2 i used to call render() like that: export default { mounted(){ ... }, render(){ ... }, methods(){ ...
I'm doing test driven development in react course - I'm trying to development test for post request. Below is by react code. import React from "react"; import a
I'm very new to JS, and really don't understand a lot of it. Trying to learn as I go. I'm trying to add some new divs to buttons to style them to look like the
I have a variable that consists of an HTML tag as below: let customDiv = '<div class="MuiAutocomplete-root" name="ApplyTo">Hello</div>'; I want to
I have a created a bar chart by chart js , Below is my code version : 2.9.4 var xValues = ["Italy", "France", "Spain", "USA", "Argentina"]; var yValues = [3, 5,
I am trying to make series of 3D rooms with cubes. We can move from one room to another room. Please find the room designs spanshot. User should be able to mov
I want to reduce the size of these divs so that every row contain 3 cards at most. As I change the measurements in the CSS, it gets smaller and smaller. PS I'm
I have the following date "13-05-2022" if (!validateDate(this.formGeral.value.data.singleDate?.formatted)) { this.errors.push('Data com formato inváli