Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers. Closed las…
Display output with a string character and with an input?
I have two things that relate to adding a character to the output view. Pronouns – Right now, it is hidden until someone types in their preferred pronoun. It’ll output her/she if that’s what they put, but I would like to do ‘(‘ + “her/she” + ‘)’; 2.The out…
JavaScript print info of an array inside an array of object in a html section
I have this array of object that contains info string number array I’m trying to print all the info of touristActivities inside an html <section> I want to print first the information of stepOne in a section tag then the information of stepTwo in another section tag touristActivities array can con…
How make dynamic breadcrumbs in vue.js?
I would like to have a dynamic breadcrumbs based on where I clicked on a category but I get an error that says my variable is undefined: TypeError: Cannot read properties of undefined (reading ‘homeMenu’). Yet in my getHomeCategory function, the console.log of homeCategory displays Perma’Thè…
Google Directions API don’t consider depature dates for temporarily closed routes
I want to use the directions API from Google Maps to get a route between two waypoints. For example take these two: Barcelonnette, 04400, France Cime de la Bonette, 04850 Jausiers, France There is a temporarily closed route between those waypoints, if I change the destination date in Google Maps to 2022-02-25…
PHPMaker 2019 | Dynamic caption based on data in database
In PHPMaker (v2019) i have the following need: Generate a caption for an column which contains a dynamic part – the year. Currently I’m using the system-date with following code: $this->COLUMN_IN_DATABASE ->Caption .= “MyColumnName ” . (date(“Y”) + 0) This works finde…
Assigning BigInt stores wrong number (number+1)
I want to define a BigInt number in JavaScript. But when I assign it, the wrong number is stored. In fact 1 is added to the number when storing. So the number stored is 1152921504606846976, but it should be 11529215046068469765. Why is that? Answer Converting a Number to a BigInt can’t create bits that …
React, make a second API call based on a state set by a first api call
I am trying to build a weather app with OpenWeather API. I have to get the latitude and longitude based on a first API call that define the location by search. I have tried async/await and useEffect hook but failed in both cases. My code is below. What am I missing? Answer What you are missing is that when yo…
jest is failing to find `bota` and `atob`
Creating a jest test like: fails with however, node does define btoa as of node 16, and so the following: correctly outputs YWFh. How can I configure jest to get this test to pass? Clearly something is happening in the jest test runner to not execute in the current node environment, or otherwise is stripping …
How to give Grid Items of a React Grid layout a reference
Im trying to have a dynamic array of references. These references would come from the Grid items, that are being mapped from a list to the Grid Layout-Element. This is my code: It seems like the “ref”-attribute gets ignored from react, because none of the grid items refs are being pushed into the …