I cant look for a value in a object array, it returns me error [closed]

Hello everyone I’m doing this music player and this is the song loader but the problem is that when I try to assing the value to song constant with lookSongbyId function it returns me an error idk why …

Retrieve data from multiple documents from Firestore

I tried a lot of times but I am still not able to retrieve data from multiple documents, The below screenshot shows that I have 3 documents in my collection and my question is how to retrieve data …

Inserting text content using same class multiple times

I’m currently trying to insert text content that change depending of image validation using a single class for multiple divs. Any help is appreciate! HTML …

<…

How to use the result of an iteration to re-iterate?

I need to create a new array from another with the condition: for example from an array mainArr: [ { “id”:1, “name”:”root” }, …

How to get a property value from an array of objects in JavaScript

I want to make an array with country names from a JSON file which contains an array of objects. These objects have a property name with the name of the country, which is what I need. This is my …

How to start item index with 1

I’m iterating through array “fruits”. I want its index to start with 1. but the output starts at 0. Here is my code var fruits = [“apple”, “orange”, “cherry”]; …

get data from all documents in an collection firebase firestore

i need to get the data of all the documents of a collection in the firestore. but in my forEach I am getting only the first document and I have two. he prints the console twice but in my setPoints …

How can I send a Discord Direct Message to all users on a server on API v12?

I’m trying to update my discord bot from API v11 to API v12, and I’m having problems to send a direct message to all server users. It is not returning any error and I’m using the latest version from …

Need to display some data from JSON for user if they are checked

The JSON is a nested one. at first it will display some services for the user with check-boxes, then user can check them if he is interested. When he clicks the button it should to display the service …

How to print items within an array sequentially

I’m learning Node and I’m attempting to create a readme generator. I’ve created my prompts to confirm if the user would like to add gifs/images to their markdown. I’ve made it so that if the user confirmed then they can enter in the number and then I pass it into a for loop that generators the markdown text for adding an image. What I’m trying to do is to get it to print list style. So far I’ve gotten it so that it’ll print but only as: ![Alt Text](Link or File Path),![Alt Text](Link or File Path),![Alt Text](Link or File Path)