Basically, I just want something that is syntactically readable to me. (I’ve been doing Javascript in my spare time for 3 weeks).
I find the notation and docs completely incomprehensible, so (for example), “adding a callback with .then()”, is less comprehensible to me than “(⍴X)⍴(,X)[A[⍋(,⍉(⌽⍴X)⍴⍳1↑⍴X)[A←⍋,X]]]”, which I know sorts a matrix in ascending order.
The example given earlier (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises) does not appear to me to show how to actually get a value from a returned promise, just the success or failure of a hypothetical function, which in my case, is as proverbially useful as nipples on a bull.
I do understand how this promises might make Javascript run more smoothly, but I really don’t care in my application, because the syntax has become even more obscure.
I just want to get the contents of the clipboard into a variable reliably with code that is as clear (to me) as possible.
I understand that this will necessarily mean that the code is slower and larger than it would be using “good” programming techniques, but this is some simple string handling, not the back end at healthcare.gov.