I have such array: let arr = [1,2,3,4,5,6,7,8,9,10] And I want to display the list of these numbers, so I made like this: arr.map(el => { return (
{el}
) }) So, and …
Bootstrap collapse/expand multiple targets with different collapse states
In the bootstrap docs, there is an example of how to toggle single and multiple targets, see https://getbootstrap.com/docs/4.0/components/collapse/?#multiple-targets. When clicking “Toggle the first element” and then “Toggle both elements”, the state of the two elements are mismatched …
How to get all categories of a wordpress site with rest api?
I’m trying to get all categories of my wordpress site with rest api : axios.get(‘https://../wp-json/wp/v2/categories’).then((res) => { console.log(res.data); }); But it …
ChartJS Email HTTP Request API
Given my chartJS config below I need to get something as close as the following Using Quickchart API, I am submitting the config through the URL, but I am having trouble setting the labels color? options:{legend:{labels:{fontColor: ‘white’}}, Gives me Update 2 I am trying to construct the URL but …
Kendo Spreadsheet Convert time to decimal while parsing the row values
I was trying to save the kendo spreadsheet data with js. while parsing the row value I saw the kendo spreadsheet convert the date to numbers and time to decimal. I’ve converted the number to date using moment js but can’t convert the decimal number to the exact time. how to convert that or it woul…
What method to use to access multiple objects in an array?
I’m new to javascript and still learning them. So I was building a project where I want to display a multiple object, which I put it in an array, to the DOM. I am not sure what method to use to access the object inside the array. This is my js file: So I kind of want to display all
How to stop a sound when the stop button is clicked in snack expo?
I am making an app which has some buttons that play different sounds, and a stop button which stops all the sounds. However, it works only when the current sound playing stops, and does not play any other music. Is the function incorrect? Here is the code(the other buttons are written in the same way as the f…
Add in HTML with the help of JavaScript
I am trying to add two “br” after each of my form fields that are not hidden because otherwise, it uses some space in my form and it doesn’t look good. But for some reason it doesn’t appear. The error generated by my code is this one: The HTML generated is this one: As you can see the …
Show a badge notification with Firestore
Hi I am creating a chat app with Firestore. I saw a lot of information about creating a badge notification with cloud messaging but not a lot of information with creating a badge notification without …
How to set Firebase rules for anonymous users to only read and write their own data
I would like anonymous users to be able to only read and write their own data. I have the below as my security rules, but am getting a cannot read error in the simulator and the app. I’m not sure that I’m going about it the right way. My main objective is to nest new assessments of the same user