What about, if you want to do the promise only when a button is pressed ? let's say update a form. that lives with another promise already executed.?? you still need to check undefined before.. other wise you will show "form updated correctly" on the promise...
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
What about, if you want to do the promise only when a button is pressed ? let's say update a form. that lives with another promise already executed.?? you still need to check undefined before.. other wise you will show "form updated correctly" on the promise...