Skip to content
Advertisement

Tag: frontend

Paypal dynamic value in react js

I need help with my project I want to add a dynamic option to the PayPal payment process. ( change the value to be dynamic ) the default option is value: ‘0.01’ and the dynamic payment in my project is cart.subtotal.formatted_with_symbol I try to add [const {amount} = cart.subtotal.formatted_with_symbol;] this line to try to change the value to value: amount

Generating random array in reactjs

I’m trying to generate a specific size random array in reactjs everytime a user hits a button. The code to generate the array is the following: This code seems to work when I test it separately. I can call it how many times I want and it will still work. However when I use this function with a simple reactjs

Does “undefined” occupy memory in javascript?

In this situation var foo; Will “foo” point to somewhere in the memory that contains the value undefined? Does undefined occupy memory in javascript? Does undefined mean that there is no memory address assigned to a specific label? Answer There’s two parts to your question. The variable itself and multiple copies of undefined value. First, variables can take space in

I am developing a theme for wordpress, also I am a beginner. As I was coding, the body tag in my css wouldn’t work. What can be the possible reason? [closed]

Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 1 year ago. Improve this question Coding it in VS code. If you need for info, please let me

how to reset color grid?

I am creating a simple etch-a-sketch game. currently on hover it colors in black. I am trying to use a button to reset the colors back to white. However, i can’t get the button to function with an event listener, if i add an alert it displays the alert but nothing else. Please guide me and supply a documentation that

Advertisement