I hope you are all well. I have a school assignment, and I want to dynamically be able to change the name of a ‘project’. This assignment is about projects. The way I’ve done it right now works with the first ‘project’ from a list of ‘projects’ iterated through with t…
Check for non null array during filtering an object
Trying to filter the object to return only non null values. Below is excerpt from my code. How do I check for non null values in the array job in this case? Could anyone please help? I was expecting the result to be Answer First map the array in the entries to keep only truthy values, then filter the entries
Append array of object values if index is the same index of a div list
I need help: I have one object with multiple array inside; i need to cycle all my array values and then append this values inside my HTML div list (with the same class). object[0] with div[0]; object[1] with div[1] ecc… This is an example: But this method return to me with a wrong result like this: Firs…
How to select values from li elements in Cheerio/jQuery?
I want to extract the values from the product__sizes-size-1 classes and transform them into an array. I have tried to use a .map() function to try and populate an array but it appears empty. To make it clear I want to have the array populated like [6,7,8,9.5] etc… Answer Your approach is correct, you ju…
Row is always returning 1 – Google Scripts
I am trying to display an HTML page with values from the spreadsheet. I click on my Generate HTML page link and it redirects to the HTML page I created. It displays correctly except that the script always gets values from the first row. I am under the impression that the doGet() function does not accept rows?…
how do i put what is inputted with buttons through a function back to an index.html?
this is what ive got, the item pushes to the array when typed in to the input boxes and the button is clicked to submit, i just cant seem to get it displayed on the html not sure where ive went wrong please help, i can see that the array is outputted in the console when typed into the buttons
Selecting an option in a template literal based on string
I am creating an admin panel. On this admin panel, Super Admins will be able to edit other admins’ roles. On the edit screen I have a dropdown that contains the available roles an admin can have. I am using a template literal to inject this HTML into a modal of my own design. My issue is, I am not
Javascript quiz with multiple radio and text input types
I’ve made a small test/quiz with radio and checkbox types. Radio button in my code is mandatory to be checked and when it is, I get the total score for all correct answers, when it’s not I get alert message that i need to check all questions. Now I want to expand this quiz. 1st problem: I’ve…
convert nested object to csv where all parents of lowest properties are visible on individual lines
I have a nested object that I want to to transform to flat lines. Below is the object: I want to be able to see it like this, where the top level of the nest is always visible for each line: I know how to loop through arrays to do this, but I’m not sure how to achieve it with
PayPal JavaScript SDK – understand security problems on the client-side
I´ve recently implemented the PayPal JavaScript SDK in my Angular 11 project (implementation reference). It seems to work flawlessly, however, I started to think that it might be possible to modify the pricing amount on the client-side. Additionally, there seems to be no further validation on PayPal´s side if…